diff options
author | cpeyser <cpeyser@google.com> | 2017-09-07 22:16:06 +0200 |
---|---|---|
committer | Yun Peng <pcloudy@google.com> | 2017-09-08 09:47:26 +0200 |
commit | d852e484d8114829ad2d7a98f075a823889f5469 (patch) | |
tree | 7cc5fa6eb7d2853e2ce6e1a523a380b7eeb2a7ab /compile.sh | |
parent | f7fc22e6fd665e73fe98846efa36a60e4bad05fe (diff) |
Add a new toolchain type for c++. In order to do this, PlatformConfiguration is made a legal configuration fragment for every rule class.
Add a default "dummy" c++ toolchain to prevent resolution errors when legacy toolchain selection logic is used. Add toolchain mocks to java and shell tests.
PiperOrigin-RevId: 167901210
Diffstat (limited to 'compile.sh')
-rwxr-xr-x | compile.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compile.sh b/compile.sh index dc414b18b6..c72a8026d1 100755 --- a/compile.sh +++ b/compile.sh @@ -81,7 +81,11 @@ source scripts/bootstrap/bootstrap.sh new_step 'Building Bazel with Bazel' display "." log "Building output/bazel" +# We set host and target platform directly since the defaults in @bazel_tools +# have not yet been generated. bazel_build "src:bazel${EXE_EXT}" \ + --experimental_host_platform=//tools/platforms:host_platform \ + --experimental_platforms=//tools/platforms:target_platform \ || fail "Could not build Bazel" bazel_bin_path="$(get_bazel_bin_path)/src/bazel${EXE_EXT}" [ -e "$bazel_bin_path" ] \ |