[TEST] Pin bazel_cpp_toolchains#52 and wire score_cpp_policies features#308
[TEST] Pin bazel_cpp_toolchains#52 and wire score_cpp_policies features#308RSingh1511 wants to merge 7 commits intoeclipse-score:mainfrom
Conversation
5cd8dc2 to
33b55e6
Compare
| "@score_cpp_policies//sanitizers/features:asan_ubsan_lsan", | ||
| "@score_cpp_policies//sanitizers/features:tsan", | ||
| "@score_cpp_policies//sanitizers/features:debug_symbols", |
There was a problem hiding this comment.
QCC is GCC under the hood. You use the wrong features.
| "@score_cpp_policies//sanitizers/features:asan_ubsan_lsan", | ||
| "@score_cpp_policies//sanitizers/features:tsan", | ||
| "@score_cpp_policies//sanitizers/features:debug_symbols", |
There was a problem hiding this comment.
QCC is GCC under the hood. You use the wrong features.
| "-latomic", | ||
| ]}, | ||
| llvm_version = "19.1.7", | ||
| stdlib = {"": "stdc++"}, |
There was a problem hiding this comment.
This makes the toolchain non-hermetic.
This example should provide a sysroot for LLVM. I'm working on setting this up in communication. We can adopt this afterwards.
| # ============================================================================== | ||
| # GCC-compatible sanitizer features | ||
| # ============================================================================== | ||
| # The @score_cpp_policies//sanitizers/features include -fsanitize-link-c++-runtime | ||
| # which is Clang-only. These define equivalent features without that flag. |
There was a problem hiding this comment.
This stuff should end up in score_cpp_policies.
| pkg_tar( | ||
| name = "suppressions_pkg", | ||
| srcs = [ | ||
| "//quality/sanitizer:repo_suppressions", | ||
| "@score_cpp_policies//sanitizers:suppressions", | ||
| ], | ||
| mode = "0444", | ||
| package_dir = "sanitizers/suppressions", | ||
| visibility = ["//visibility:public"], | ||
| ) |
There was a problem hiding this comment.
This does not work. You add files with similar names into a single archive. This leads to overrides.
You must combine the files instead.
score_cpp_policies should provide a bazel rule for that.
There was a problem hiding this comment.
We need the same for qcc to avoid issues like the ones I commented in MODULE.bazel.
04ac261 to
9618ac0
Compare
9618ac0 to
09d8bfa
Compare
No description provided.