|
1 | 1 | common --@rules_swiftnav//cc:enable_bzlmod=true |
2 | 2 |
|
3 | | - |
4 | 3 | coverage --experimental_generate_llvm_lcov |
5 | 4 | coverage --combined_report=lcov |
6 | | -build:coverage_x86_64_linux --platforms=@rules_swiftnav//platforms:x86_64_linux_llvm20 |
7 | | - |
8 | | -build:coverage_aarch64_darwin --platforms=@rules_swiftnav//platforms:aarch64_darwin_llvm20 |
9 | | -build:coverage_aarch64_darwin --action_env=BAZEL_USE_LLVM_NATIVE_COVERAGE=0 |
10 | | - |
11 | | - |
12 | | - |
13 | | -# # Overrides our custom toolchain and uses the system |
14 | | -# build:system --noincompatible_enable_cc_toolchain_resolution |
15 | | - |
16 | | -# build:system --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN="0" |
17 | | - |
18 | | -# build:system --platform_suffix=system |
19 | | - |
20 | | -# # build --config=system |
21 | | -# build --nojava_deps |
22 | | -# build --define=BAZEL_USE_SYSTEM_ZLIB=1 |
23 | | -# build --spawn_strategy=local |
24 | | -# build --strategy=Genrule=local |
25 | | -# build --strategy=CppCompile=local |
26 | | -# build --strategy=TestRunner=local |
27 | | -# build --strategy=Javac=local |
28 | | -# build --strategy=Closure=local |
29 | | -# build --strategy=GoCompile=local |
30 | | -# build --strategy=GoLink=local |
31 | | -# build --strategy=GoTest=local |
32 | | -# build --strategy=GoVet=local |
33 | | -# build --strategy=ObjcCompile=local |
34 | | -# build --strategy=ObjcLink=local |
35 | | -# build --strategy=SwiftCompile=local |
36 | | -# build --strategy=Dart=local |
37 | | -# build --strategy=Worker=local |
38 | | -# build --strategy=ProtoCompile=local |
39 | | -# build --strategy=PyCompile=local |
40 | | -# build --strategy=PyTest=local |
41 | | -# build --strategy=TypeScriptCompile=local |
42 | | -# build --strategy=TypeScriptTest=local |
43 | | - |
44 | | -# test --spawn_strategy=local |
45 | | -# test --strategy=TestRunner=local |
46 | | - |
47 | | -# coverage --spawn_strategy=local |
48 | | -# coverage --strategy=TestRunner=local |
49 | | -# coverage --action_env=COVERAGE_GCOV_PATH="/opt/homebrew/opt/llvm/bin/llvm-profdata" # not needed, part of clang20 toolchain! |
50 | | - |
51 | | -# next line does not seem to change anything |
52 | | -# coverage --action_env=BAZEL_USE_LLVM_NATIVE_COVERAGE=1 |
53 | | - |
54 | | -# same, same |
55 | | -# coverage --action_env=GCOV_PREFIX_STRIP=10 |
56 | | - |
57 | | -# next 4 lines are not possible with clang20! |
58 | | -# coverage --cxxopt=-mllvm |
59 | | -# coverage --copt=-mllvm |
60 | | -# coverage --cxxopt=-system-headers-coverage |
61 | | -# coverage --copt=-system-headers-coverage |
62 | | - |
63 | | - |
64 | | -# Mac: |
65 | | -# https://github.com/bazelbuild/bazel/blob/1879fc9dbf9d1989c2f1a1e6d2ec61097fe62233/src/test/shell/bazel/bazel_coverage_cc_test_llvm.sh#L67 ? |
66 | | -# bazel coverage --config=coverage_aarch64_darwin //src/base_math:base_math_test --subcommands --experimental_generate_llvm_lcov --combined_report=lcov |
67 | | - |
68 | | -#common --action_env=BAZEL_LLVM_COV="external/rules_swiftnav+/cc/toolchains/llvm20/aarch64-darwin/wrappers/llvm-cov" |
69 | | -#common --action_env=BAZEL_LLVM_PROFDATA="external/rules_swiftnav+/cc/toolchains/llvm20/aarch64-darwin/wrappers/llvm-profdata" |
70 | | -#common --action_env=BAZEL_USE_LLVM_NATIVE_COVERAGE=1 |
71 | | -#common --repo_env=CC=${clang} |
72 | | -#common --repo_env=GCOV=${llvm_profdata} |
73 | | -#common --experimental_generate_llvm_lcov |
74 | | - |
75 | | - |
76 | | -# on ubuntu! |
77 | | -# 1. |
78 | | -# bazel coverage --config=coverage_x86_64_linux //src/base_math:base_math_test --subcommands --experimental_generate_llvm_lcov --combined_report=lcov |
79 | | -# 2. |
80 | | -# cp "$(bazel info output_path)/_coverage/_coverage_report.dat" cov.dat |
81 | | -# copy |
82 | | -# 3. genhtml --output html cov.dat |
83 | | - |
84 | | - |
85 | | - |
86 | | -# bazel coverage --config=coverage_x86_64_linux //src/old_folder_structure:old_folder_structure_test --subcommands --experimental_generate_llvm_lcov --combined_report=lcov |
87 | | -# cp "$(bazel info output_path)/_coverage/_coverage_report.dat" cov.dat |
88 | | -# genhtml --output html cov.dat |
89 | | - |
90 | 5 |
|
0 commit comments