Skip to content

Commit

Permalink
Try to convince offset-tool to use clang's headers
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdageek committed Oct 6, 2023
1 parent 816883f commit edf1850
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mono/mono/tools/offsets-tool/offsets-tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ def require_emscipten_path (args):
self.target_args += ["--target=aarch64-linux-gnu"]
self.target_args += ["--sysroot", args.sysroot]
self.target_args += ["-I", args.sysroot + "/include"]
clang_path = os.path.dirname(args.libclang)
## FIXME: Hack
self.target_args += ["-isystem", clang_path + "/../lib/clang/16/include"]
if args.prefixes:
for prefix in args.prefixes:
if not os.path.isdir (prefix):
Expand Down

0 comments on commit edf1850

Please sign in to comment.