`
1.源码下载
git clone https://github.com/abseil/abseil-cpp
2. bazel build -c opt //absl/…
bazel会在abseil-cpp目录创建WORKSPACE文件,自动根据absl/BUILD.bazel,及子目录的BUILD.bazel编译abseil项目。
-c opt选项解释:
–compilation_mode [-c] (fastbuild, dbg or opt; default: “fastbuild”)
Specify the mode the binary will be built in. Values: ‘fastbuild’, ‘dbg’,
‘opt’.
Tags: affects_outputs, action_command_lines
命令举例:
bazel test --cxxopt=-std=c++17 -c opt --test_timeout 800 --runs_per_test=1 --jobs 1 --nocache_test_results //absl/synchronization:graphcycles_benchmark --verbose_failures --sandbox_debug
//清除重建:
bazel clean --async
//设置不使用cache
bazel test --test_timeout 8,80,800,1200 --nocache_test_results //absl/container:inlined_vector_benchmark
//超时设置
–test_timeout (a single integer or comma-separated list of 4 integers; default: “-1”)
//每个Test Case run 几遍
–

5419

被折叠的 条评论
为什么被折叠?



