mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -04:00
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:
parent
1da327c725
commit
d01391b40d
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue