• Home
  • Raw
  • Download

Lines Matching +full:clang +full:- +full:tools +full:- +full:extra

7 #     https://www.apache.org/licenses/LICENSE-2.0
23 load("@bazel_tools//tools/cpp:toolchain_utils.bzl", "find_cpp_toolchain", "use_cpp_toolchain")
50 # buildifier: disable=function-docstring
90 if not p.startswith("blaze-out") and not p.startswith("bazel-out"):
94 if i == -1:
111 append_arg(args, "--sapi_name", ctx.attr.lib_name)
112 append_arg(args, "--sapi_out", ctx.outputs.out.path)
113 append_arg(args, "--sapi_embed_dir", ctx.attr.embed_dir)
114 append_arg(args, "--sapi_embed_name", ctx.attr.embed_name)
115 append_arg(args, "--sapi_functions", ",".join(ctx.attr.functions))
116 append_arg(args, "--sapi_ns", ctx.attr.namespace)
119 args.append("--sapi_limit_scan_depth")
124 # here, just the top-level cc_library headers.
127 # package path. Including extra headers is harmless except that
128 # we may hit Bazel's file-count limit, so be conservative and
145 extra_flags.append("--extra-arg=-std=c++17")
148 extra_flags.append("--extra-arg=-Wno-everything")
149 extra_flags += ["--extra-arg=-D{}".format(d) for d in cc_ctx.defines.to_list()]
150 … extra_flags += ["--extra-arg=-isystem{}".format(i) for i in cc_ctx.system_includes.to_list()]
151 extra_flags += ["--extra-arg=-iquote{}".format(i) for i in quote_includes]
152 …extra_flags += ["--extra-arg=-isystem{}".format(d) for d in cpp_toolchain.built_in_include_directo…
154 append_all(extra_flags, "-D", cc_ctx.defines.to_list())
155 append_all(extra_flags, "-isystem", cc_ctx.system_includes.to_list())
156 append_all(extra_flags, "-iquote", quote_includes)
176 append_arg(args, "--sapi_in", ",".join(input_files_paths))
177 args += ["--"] + extra_flags
221 "//sandboxed_api/tools/generator2:sapi_generator",
224 # TODO(cblichmann): Add prebuilt version of Clang based generator
225 "//sandboxed_api/tools/clang_generator:generator_tool",
228 default = Label("@bazel_tools//tools/cpp:current_cc_toolchain"),
239 malloc = "@bazel_tools//tools/cpp:malloc",
287 deps: Extra dependencies to add to the SAPI library
288 tags: Extra tags to associate with the target
291 version 2 uses the newer C++ implementation that uses the full clang
292 compiler front-end for parsing. Both emit equivalent Sandboxed APIs.
295 in addition to default-supported environments.
313 exported_funcs = ["-Wl,-u," + s for s in functions]
316 "-Wl,--whole-archive",
317 "-Wl,--allow-multiple-definition",
355 "-ldl", # For dlopen(), dlsym()
357 "-Wl,-E", # symbols used in the sandboxed library, so these