disable worker when building wheels

Will override a user.bazelrc setting, except if it's specified
for a specific OS (eg build:windows)
This commit is contained in:
Damien Elmes 2020-12-12 10:18:09 +10:00
parent 1da327c725
commit d01391b40d
2 changed files with 4 additions and 3 deletions

View file

@ -8,5 +8,5 @@ test -e WORKSPACE || (
)
rm -rf bazel-dist
bazel build -c opt dist
bazel build -c opt --@io_bazel_rules_rust//worker:use_worker=False dist
tar xvf bazel-bin/dist.tar

View file

@ -7,8 +7,9 @@ if not exist WORKSPACE (
rd /s /q bazel-dist
call .\bazel build -k -c opt dist --color=yes
set BUILDARGS=-k -c opt dist --color=yes --@io_bazel_rules_rust//worker:use_worker=False
call .\bazel build %BUILDARGS%
:: repeat on failure
IF %ERRORLEVEL% NEQ 0 call .\bazel build -k -c opt dist --color=yes
IF %ERRORLEVEL% NEQ 0 call .\bazel build %BUILDARGS%
tar xvf bazel-bin\dist.tar