Lines Matching +refs:clang +refs:format +refs:executable
33 """find the libraries used for linking a static executable.
61 …bindgen_flags (list, optional): Flags to pass directly to the bindgen executable. See https://rust…
63 clang_flags (list, optional): Flags to pass directly to the clang executable.
147 rustc_flags.append("-lstatic={}".format(get_lib_name_default(lib.static_library)))
151 … rustc_flags.append("-lstatic={}".format(get_lib_name_default(lib.pic_static_library)))
156 fail("No static libraries found in {}".format(
160 rustc_flags_file = ctx.actions.declare_file("{}.rustc_flags".format(ctx.label.name))
166 link_search_paths = ctx.actions.declare_file("{}.link_search_paths".format(ctx.label.name))
170 "-Lnative=${{pwd}}/{}".format(path)
192 … fail("Header {} is not in {}'s transitive headers.".format(ctx.attr.header, cc_lib), "header")
196 clang_bin = toolchain.clang
265 # Bindgen forcibly uses clang.
266 …# It's possible that the selected cc_toolchain isn't clang, and may specify flags which clang does…
267 …depend on a more specific toolchain, requesting one which is specifically clang via some constrain…
268 …nately, we can't currently rely on this, so instead we filter only to flags we know clang supports.
295 # Set the dynamic linker search path so that clang uses the libstdcxx from the toolchain.
302 executable = bindgen_bin,
314 progress_message = "Generating bindings for {}..".format(header.path),
350 …doc = "Flags to pass directly to the bindgen executable. See https://rust-lang.github.io/rust-bind…
358 doc = "Flags to pass directly to the clang executable.",
374 executable = True,
391 bindgen = ctx.executable.bindgen,
392 clang = ctx.executable.clang,
404 in turn depends on both a clang binary and the clang library. To obtain these dependencies,
413 clang = "//my/clang:clang",
414 libclang = "//my/clang:libclang.so",
430 doc = "The label of a `bindgen` executable.",
431 executable = True,
434 "clang": attr.label(
435 doc = "The label of a `clang` executable.",
436 executable = True,
441 … doc = "If set, `rust_bindgen` targets will always format generated sources with `rustfmt`.",
452 …es libclang's libstdc++ dependency. This is used to make the execution of clang hermetic. If None,…