mirror of
https://github.com/bazelbuild/rules_cc
synced 2024-11-27 20:43:26 +00:00
66613ac5d9
BEGIN_PUBLIC Add support for implicit include directories to rule-based toolchains Reorients the `cc_toolchain.cxx_builtin_include_directories` attribute so it is expressed as an attribute on `cc_args` and `cc_tool` to signify that the tools or arguments imply include directories that Bazel's include path checker should allowlist. This moves the allowlist to the source of truth that implies these directories. END_PUBLIC PiperOrigin-RevId: 671393376 Change-Id: Ide8cae548783726835168adcd3f705028a1f4308
68 lines
1.3 KiB
Python
68 lines
1.3 KiB
Python
load("@bazel_skylib//rules:native_binary.bzl", "native_binary")
|
|
load("@bazel_skylib//rules/directory:directory.bzl", "directory")
|
|
load("@bazel_skylib//rules/directory:subdirectory.bzl", "subdirectory")
|
|
|
|
package(default_visibility = ["//tests/rule_based_toolchain:__subpackages__"])
|
|
|
|
directory(
|
|
name = "directory",
|
|
srcs = glob(
|
|
["**"],
|
|
exclude = ["BUILD"],
|
|
),
|
|
)
|
|
|
|
subdirectory(
|
|
name = "subdirectory_1",
|
|
parent = ":directory",
|
|
path = "subdir1",
|
|
)
|
|
|
|
subdirectory(
|
|
name = "subdirectory_2",
|
|
parent = ":directory",
|
|
path = "subdir2",
|
|
)
|
|
|
|
subdirectory(
|
|
name = "subdirectory_3",
|
|
parent = ":directory",
|
|
path = "subdir3",
|
|
)
|
|
|
|
exports_files(
|
|
glob(
|
|
["*"],
|
|
exclude = ["BUILD"],
|
|
),
|
|
)
|
|
|
|
native_binary(
|
|
name = "bin_wrapper",
|
|
src = "bin_wrapper.sh",
|
|
out = "bin_wrapper",
|
|
data = [":bin"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "multiple",
|
|
srcs = [
|
|
"multiple1",
|
|
"multiple2",
|
|
],
|
|
)
|
|
|
|
# Analysis_test is unable to depend on source files directly, but it can depend
|
|
# on a filegroup containing a single file.
|
|
filegroup(
|
|
name = "bin_filegroup",
|
|
srcs = ["bin"],
|
|
)
|
|
|
|
# Analysis_test is unable to depend on source files directly, but it can depend
|
|
# on a filegroup containing a single file.
|
|
filegroup(
|
|
name = "bin_wrapper_filegroup",
|
|
srcs = ["bin_wrapper.sh"],
|
|
)
|