• Home
  • Raw
  • Download

Lines Matching +full:libclang +full:- +full:version

2 # Use of this source code is governed by a BSD-style license that can be
19 # On Windows, the libclang.dll is beside the bindgen.exe, otherwise it is in
43 # C compilation targets determine the correct list of -D and -I flags based
94 "--exe",
96 "--header",
98 "--depfile",
100 "--output",
102 "--libclang-path",
110 "--wrap-static-fns",
119 "--ld-library-path",
125 args += [ "--bindgen-flags" ]
132 "--",
139 # libclang will run the system `clang` to find the "resource dir" which it
140 # places before the directory specified in `-isysroot`.
141 …# https://github.com/llvm/llvm-project/blob/699e0bed4bfead826e210025bf33e5a1997c018b/clang/lib/Too…
151 "-resource-dir",
155 # The `--sysroot` flag is not working as expected and gets ignored (we don't
156 # fully understand why, see b/328510249). But we add `-isystem` to point at
161 [ "-I" + rebase_path(sysroot + "/usr/include/", root_build_dir) ]
164 "-isystem",
189 args += [ "/clang:-fparse-all-comments" ]
191 args += [ "-fparse-all-comments" ]
194 # Default configs include "-fvisibility=hidden", and for some reason this
197 args += [ "-fvisibility=default" ]
201 # We pass MSVC style flags to clang on Windows, and libclang needs to be
203 args += [ "--driver-mode=cl" ]
205 # On Windows, libclang adds arguments that it then fails to understand.
206 # -fno-spell-checking
207 # -fallow-editor-placeholders
209 args += [ "-Wno-unknown-argument" ]
211 # Replace these two arguments with a version that clang-cl can parse.
213 "/clang:-fno-spell-checking",
214 "/clang:-fallow-editor-placeholders",
221 # Even if we provide a custom -fsanitize-ignorelist, the absence
223 # it within third_party/llvm-build, but for bindgen our cwd
228 args += [ "-fno-sanitize-ignorelist" ]