• Home
  • Raw
  • Download

Lines Matching +refs:clang +refs:format +refs:executable

33     """find the libraries used for linking a static executable.
60 …bindgen_flags (list, optional): Flags to pass directly to the bindgen executable. See https://rust…
62 clang_flags (list, optional): Flags to pass directly to the clang executable.
128 rustc_flags.append("-lstatic={}".format(get_lib_name_default(lib.static_library)))
132 … rustc_flags.append("-lstatic={}".format(get_lib_name_default(lib.pic_static_library)))
137 fail("No static libraries found in {}".format(
141 rustc_flags_file = ctx.actions.declare_file("{}.rustc_flags".format(ctx.label.name))
147 link_search_paths = ctx.actions.declare_file("{}.link_search_paths".format(ctx.label.name))
151 "-Lnative=${{pwd}}/{}".format(path)
173 … fail("Header {} is not in {}'s transitive headers.".format(ctx.attr.header, cc_lib), "header")
177 clang_bin = toolchain.clang
229 # Bindgen forcibly uses clang.
230 …# It's possible that the selected cc_toolchain isn't clang, and may specify flags which clang does…
231 …depend on a more specific toolchain, requesting one which is specifically clang via some constrain…
232 …nately, we can't currently rely on this, so instead we filter only to flags we know clang supports.
259 # Set the dynamic linker search path so that clang uses the libstdcxx from the toolchain.
266 executable = bindgen_bin,
278 progress_message = "Generating bindings for {}..".format(header.path),
286 …issues explaining why this was necessary, as this support will be removed soon.".format(ctx.label))
321 …doc = "Flags to pass directly to the bindgen executable. See https://rust-lang.github.io/rust-bind…
329 doc = "Flags to pass directly to the clang executable.",
348 executable = True,
365 bindgen = ctx.executable.bindgen,
366 clang = ctx.executable.clang,
378 in turn depends on both a clang binary and the clang library. To obtain these dependencies,
387 clang = "//my/clang:clang",
388 libclang = "//my/clang:libclang.so",
404 doc = "The label of a `bindgen` executable.",
405 executable = True,
408 "clang": attr.label(
409 doc = "The label of a `clang` executable.",
410 executable = True,
415 … doc = "If set, `rust_bindgen` targets will always format generated sources with `rustfmt`.",
426 …es libclang's libstdc++ dependency. This is used to make the execution of clang hermetic. If None,…