Skip to content

Commit

Permalink
Extract special BUILD file for //tools/cpp when present in the @bazel…
Browse files Browse the repository at this point in the history
…_tools

Progress towards #10134.

RELNOTES: None.
PiperOrigin-RevId: 280654359
  • Loading branch information
hlopko authored and copybara-github committed Nov 15, 2019
1 parent 23f052f commit bea9d25
Show file tree
Hide file tree
Showing 4 changed files with 477 additions and 438 deletions.
1 change: 1 addition & 0 deletions scripts/bootstrap/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ EOF

# Create the rest of @bazel_tools//tools/...
link_children "${PWD}" tools/cpp "${BAZEL_TOOLS_REPO}"
mv -f ${BAZEL_TOOLS_REPO}/tools/cpp/BUILD.tools ${BAZEL_TOOLS_REPO}/tools/cpp/BUILD
link_children "${PWD}" tools/python "${BAZEL_TOOLS_REPO}"
link_children "${PWD}" tools "${BAZEL_TOOLS_REPO}"

Expand Down
1 change: 1 addition & 0 deletions src/create_embedded_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
lambda x: 'tools/build_defs/repo/BUILD'),
('*tools/platforms/BUILD.tools', lambda x: 'platforms/BUILD'),
('*tools/platforms/*', lambda x: 'platforms/' + os.path.basename(x)),
('*tools/cpp/BUILD.tools', lambda x: 'tools/cpp/BUILD'),
('*tools/cpp/runfiles/generated_*',
lambda x: 'tools/cpp/runfiles/' + os.path.basename(x)[len('generated_'):]),
('*jarjar_command_deploy.jar',
Expand Down
Loading

0 comments on commit bea9d25

Please sign in to comment.