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

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} //..."