Skip to content

How to *not* wrap headers? #339

Answered by Gnimuc
maleadt asked this question in Q&A
Sep 20, 2021 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

With is_local_header_only=false, all decls in a translation unit will be picked up, including all decls in the current header and dependent headers(both system headers and non-system headers).

To generate self-contained and light-weighted Julia code, the default behavior(with is_local_header_only=true) of Clang.jl is only to pick up those decls used in the system headers. Any header can be treated as a system header if we pass the include directory flag as -isystem$include_dir instead of -I include_dir .

But there are cases that can not be handled with the -isystem hack, for example,

https://github.com/maleadt/LLVM.jl/blob/9155a8c30d6743197728e63c167d078167f34725/res/wrap_llvmextra.jl#L23…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by maleadt
Comment options

You must be logged in to vote
2 replies
@maleadt
Comment options

maleadt Sep 21, 2021
Maintainer Author

@maleadt
Comment options

maleadt Sep 21, 2021
Maintainer Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants