Skip to content

Commit 5b03a11

Browse files
Gnimucmaleadt
andauthored
Use generate_isystem_symbols to ignore the symbols in -isystem headers (#402)
Co-authored-by: Tim Besard <tim.besard@gmail.com>
1 parent 6bf0d97 commit 5b03a11

File tree

8 files changed

+3664
-3978
lines changed

8 files changed

+3664
-3978
lines changed

lib/13/libLLVM.jl

Lines changed: 977 additions & 991 deletions
Large diffs are not rendered by default.

lib/14/libLLVM.jl

Lines changed: 979 additions & 1017 deletions
Large diffs are not rendered by default.

lib/15/libLLVM.jl

Lines changed: 854 additions & 896 deletions
Large diffs are not rendered by default.

lib/16/libLLVM.jl

Lines changed: 848 additions & 890 deletions
Large diffs are not rendered by default.

res/Manifest.toml

Lines changed: 0 additions & 167 deletions
This file was deleted.

res/Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[deps]
22
Clang = "40e3b903-d033-50b4-a0cc-940c62c95e31"
33
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
4+
5+
[compat]
6+
Clang = "0.18.2"

res/llvmextra.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ prologue_file_path = ""
44
epilogue_file_path = ""
55
use_julia_native_enum_type = false
66
use_deterministic_symbol = true
7+
generate_isystem_symbols = false
78
printer_blacklist = [
89
"LLVM_C_STRICT_PROTOTYPES_END",
910
"LLVM_NATIVE_ARCH",

res/wrap.jl

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ end
5252
function wrap(version; includedir, cppflags)
5353

5454
args = get_default_args("x86_64-linux-gnu")
55-
push!(args, "-Isystem$includedir")
55+
push!(args, "-isystem$includedir")
5656
append!(args, split(cppflags))
5757

5858
mkpath("../lib/$version")
@@ -82,22 +82,7 @@ function wrap(version; includedir, cppflags)
8282

8383
ctx = create_context(header_files, args, options)
8484

85-
build!(ctx, BUILDSTAGE_NO_PRINTING)
86-
87-
# custom rewriter
88-
function rewrite!(dag::ExprDAG)
89-
replace!(get_nodes(dag)) do node
90-
filename = normpath(Clang.get_filename(node.cursor))
91-
if !contains(filename, "LLVMExtra")
92-
return ExprNode(node.id, Generators.Skip(), node.cursor, Expr[], node.adj)
93-
end
94-
return node
95-
end
96-
end
97-
98-
rewrite!(ctx.dag)
99-
100-
build!(ctx, BUILDSTAGE_PRINTING_ONLY)
85+
build!(ctx)
10186
end
10287

10388
return

0 commit comments

Comments
 (0)