Skip to content

Commit

Permalink
Generate portable include path
Browse files Browse the repository at this point in the history
  • Loading branch information
serge-sans-paille committed Oct 9, 2021
1 parent a9774d8 commit 9bb51a3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pythran/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1315,10 +1315,11 @@ def visit_Module(self, node):
""" Build a compilation unit. """
# build all types
header_deps = sorted(self.dependencies)
headers = [Include(os.path.join("pythonic", "include",
*map(cxxid, t)) + ".hpp")
headers = [Include('/'.join(["pythonic", "include"] +
[cxxid(x) for x in t]) + ".hpp")
for t in header_deps]
headers += [Include(os.path.join("pythonic", *map(cxxid, t)) + ".hpp")
headers += [Include('/'.join(["pythonic"] + [cxxid(x) for x in t])
+ ".hpp")
for t in header_deps]

decls_n_defns = list(filter(None, (self.visit(stmt) for stmt in
Expand Down

0 comments on commit 9bb51a3

Please sign in to comment.