Skip to content

Commit fe7ca63

Browse files
comiuscopybara-github
authored andcommitted
Automated rollback of commit 0640261.
*** Reason for rollback *** Breaks cc_builtin_tests *** Original change description *** Copybara Merge: bazelbuild#257 BEGIN_PUBLIC Copybara import of the project: -- 12a8bd5 by Fabian Meumertzheim <[email protected]>: Move static library validation helper to `ar_files` It doesn't need to be staged for every compile or link action. The action that uses it stages `all_files`. END_PUBLIC *** PiperOrigin-RevId: 695300596 Change-Id: If10c95c1867716c82a09ad3acdfd479beedcc6c5
1 parent 1698d2b commit fe7ca63

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

.bazelci/presubmit.yml

+5
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ build_targets: &build_targets
55
- "//examples/..."
66
- "//tests/..."
77
- "-//examples/custom_toolchain:legacy_selector" # Example only works on Linux
8+
- "-//tests/rule_based_toolchain/tool_map:_duplicate_action_test_subject" # Intentionally broken rule.
89
test_targets: &test_targets
910
- "//:all"
1011
- "//cc/..."
1112
- "//examples/..."
1213
- "//tests/..."
1314
- "-//examples/custom_toolchain:legacy_selector" # Example only works on Linux
15+
- "-//tests/rule_based_toolchain/tool_map:_duplicate_action_test_subject" # Intentionally broken rule.
1416

1517
build_targets_bazel_6: &build_targets_bazel_6
1618
- "//:all"
@@ -20,6 +22,7 @@ build_targets_bazel_6: &build_targets_bazel_6
2022
- "-//examples/custom_toolchain:legacy_selector" # Example only works on Linux
2123
- "-//tests/rule_based_toolchain/..." # proto.encode_text doesn't support None
2224
- "-//cc:optional_current_cc_toolchain" # Not supported in Bazel 6
25+
- "-//tests/rule_based_toolchain/tool_map:_duplicate_action_test_subject" # Intentionally broken rule.
2326
test_targets_bazel_6: &test_targets_bazel_6
2427
- "//:all"
2528
- "//cc:all"
@@ -28,6 +31,7 @@ test_targets_bazel_6: &test_targets_bazel_6
2831
- "-//examples/custom_toolchain:legacy_selector" # Example only works on Linux
2932
- "-//tests/rule_based_toolchain/..." # proto.encode_text doesn't support None
3033
- "-//cc:optional_current_cc_toolchain" # Not supported in Bazel 6
34+
- "-//tests/rule_based_toolchain/tool_map:_duplicate_action_test_subject" # Intentionally broken rule.
3135

3236
buildifier:
3337
version: latest
@@ -75,6 +79,7 @@ tasks:
7579
- "//tests/..."
7680
- "-//examples/custom_toolchain:legacy_selector" # Example only works on Linux
7781
- "-//tests/system_library:system_library_test" # Fails because of repo setup
82+
- "-//tests/rule_based_toolchain/tool_map:_duplicate_action_test_subject" # Intentionally broken rule.
7883
macos_head:
7984
name: MacOS (Bazel HEAD)
8085
bazel: last_green

cc/private/toolchain/BUILD.tpl

-5
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@ filegroup(
6969
srcs = glob(["extra_tools/**"], allow_empty = True) + [%{cc_compiler_deps}],
7070
)
7171

72-
filegroup(
73-
name = "ar_files",
74-
srcs = [":compiler_deps"] + [%{ar_deps}],
75-
)
76-
7772
# This is the entry point for --crosstool_top. Toolchains are found
7873
# by lopping off the name of --crosstool_top and searching for
7974
# the "${CPU}" entry in the toolchains attribute.

cc/private/toolchain/unix_cc_configure.bzl

+3-2
Original file line numberDiff line numberDiff line change
@@ -629,8 +629,9 @@ def configure_unix_toolchain(repository_ctx, cpu_value, overridden_tools):
629629
":builtin_include_directory_paths",
630630
":cc_wrapper",
631631
":deps_scanner_wrapper",
632-
]),
633-
"%{ar_deps}": get_starlark_list([":validate_static_library"] if "validate_static_library" in tool_paths else []),
632+
] + (
633+
[":validate_static_library"] if "validate_static_library" in tool_paths else []
634+
)),
634635
"%{cc_toolchain_identifier}": cc_toolchain_identifier,
635636
"%{compile_flags}": get_starlark_list(
636637
[

0 commit comments

Comments
 (0)