Skip to content

Commit bea9d25

Browse files
hlopkocopybara-github
authored andcommitted
Extract special BUILD file for //tools/cpp when present in the @bazel_tools
Progress towards #10134. RELNOTES: None. PiperOrigin-RevId: 280654359
1 parent 23f052f commit bea9d25

File tree

4 files changed

+477
-438
lines changed

4 files changed

+477
-438
lines changed

scripts/bootstrap/compile.sh

+1
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ EOF
289289

290290
# Create the rest of @bazel_tools//tools/...
291291
link_children "${PWD}" tools/cpp "${BAZEL_TOOLS_REPO}"
292+
mv -f ${BAZEL_TOOLS_REPO}/tools/cpp/BUILD.tools ${BAZEL_TOOLS_REPO}/tools/cpp/BUILD
292293
link_children "${PWD}" tools/python "${BAZEL_TOOLS_REPO}"
293294
link_children "${PWD}" tools "${BAZEL_TOOLS_REPO}"
294295

src/create_embedded_tools.py

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
lambda x: 'tools/build_defs/repo/BUILD'),
3434
('*tools/platforms/BUILD.tools', lambda x: 'platforms/BUILD'),
3535
('*tools/platforms/*', lambda x: 'platforms/' + os.path.basename(x)),
36+
('*tools/cpp/BUILD.tools', lambda x: 'tools/cpp/BUILD'),
3637
('*tools/cpp/runfiles/generated_*',
3738
lambda x: 'tools/cpp/runfiles/' + os.path.basename(x)[len('generated_'):]),
3839
('*jarjar_command_deploy.jar',

0 commit comments

Comments
 (0)