specify bazel version + more tests
add these toolchains: 1. toolchain-free (on-host gcc) 2. llvm without sysroot
This commit is contained in:
parent
fa06b371bf
commit
e2ac68189e
1
.bazelrc
1
.bazelrc
@ -2,7 +2,6 @@ common --color=yes --curses=yes
|
||||
|
||||
build --announce_rc
|
||||
build --incompatible_enable_cc_toolchain_resolution
|
||||
build --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
|
||||
|
||||
build:hermetic-sandbox --experimental_use_hermetic_linux_sandbox
|
||||
build:hermetic-sandbox --sandbox_add_mount_pair=/bin
|
||||
|
1
.bazelversion
Normal file
1
.bazelversion
Normal file
@ -0,0 +1 @@
|
||||
5.4.0
|
10
results/hyperfine.sh
Executable file
10
results/hyperfine.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
set -x
|
||||
|
||||
exec hyperfine \
|
||||
--export-markdown=results/hyperfine.md \
|
||||
--runs 5 \
|
||||
-L toolchain ,--extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-linux,--extra_toolchains=@llvm_toolchain_with_sysroot//:cc-toolchain-x86_64-linux,--platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 \
|
||||
-L sandbox_strategy "--spawn_strategy=local,--spawn_strategy=sandboxed --experimental_reuse_sandbox_directories,--spawn_strategy=sandboxed" \
|
||||
-p "bazel build {toolchain} {sandbox_strategy} //:zigzag-0; bazel clean; bazel shutdown" \
|
||||
"bazel build {toolchain} {sandbox_strategy} //..."
|
Loading…
Reference in New Issue
Block a user