specify bazel version + more tests

add these toolchains:
1. toolchain-free (on-host gcc)
2. llvm without sysroot
This commit is contained in:
Motiejus Jakštys 2022-12-20 11:32:17 +02:00
parent fa06b371bf
commit e2ac68189e
3 changed files with 11 additions and 1 deletions

View File

@ -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
View File

@ -0,0 +1 @@
5.4.0

10
results/hyperfine.sh Executable file
View 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} //..."