mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 19:40:29 +00:00
a19d3f3375
Place the windows toolchain in the build root so it can be sent to RBE. Use relative paths in debug symbols when building with Windows clang, which is needed for remotely building with RBE. Set the executable bit when invoking clang-cl remotely as it has not been set on Windows RBE clients. Stop including .rst files during build commands as @options-from-file is not supported by rewrapper at this time. Forward RBE_cfg into the msvc build environment and rewrite the INCLUDE, LIB, and LIBPATH environment variables to use relative paths instead of absolute paths. Don't download reclient on windows-arm64 where there is no cipd package and the windows-arm64 python lies and says it's x64 because they actually packaged a x64 python. Tune the Windows -j performance to match the historic bot performance as most casual Windows machines won't handle -j 1000 well. Bug: b/296994239 Change-Id: I2bd1b4478fca796f0a326c062a5f478f16c2c6ef Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/343440 Reviewed-by: William Hesse <whesse@google.com> Commit-Queue: Jonas Termansen <sortie@google.com>
9 lines
221 B
Bash
Executable file
9 lines
221 B
Bash
Executable file
#!/bin/bash
|
|
os=$(uname -s | tr '[A-Z]' '[a-z'])
|
|
arch=$(uname -m | tr '[A-Z]' '[a-z'] | sed -E 's/^x86_64$/x64/')
|
|
rm -f "$1"
|
|
cp "../../buildtools/$os-$arch/clang/bin/llvm" "$1"
|
|
chmod +x "$1"
|
|
INCLUDE=${INCLUDE//\\/\/}
|
|
"$@"
|