Skip to content

Commit

Permalink
disable worker when building wheels
Browse files Browse the repository at this point in the history
Will override a user.bazelrc setting, except if it's specified
for a specific OS (eg build:windows)
  • Loading branch information
dae committed Dec 12, 2020
1 parent 1da327c commit d01391b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/build
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 3 additions & 2 deletions scripts/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d01391b

Please sign in to comment.