Skip to content

[TEST] Pin bazel_cpp_toolchains#52 and wire score_cpp_policies features#308

Draft
RSingh1511 wants to merge 7 commits intoeclipse-score:mainfrom
RSingh1511:rs/test-gcc-pr52
Draft

[TEST] Pin bazel_cpp_toolchains#52 and wire score_cpp_policies features#308
RSingh1511 wants to merge 7 commits intoeclipse-score:mainfrom
RSingh1511:rs/test-gcc-pr52

Conversation

@RSingh1511
Copy link
Copy Markdown

No description provided.

Comment thread MODULE.bazel Outdated
Comment on lines +114 to +116
"@score_cpp_policies//sanitizers/features:asan_ubsan_lsan",
"@score_cpp_policies//sanitizers/features:tsan",
"@score_cpp_policies//sanitizers/features:debug_symbols",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QCC is GCC under the hood. You use the wrong features.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Comment thread MODULE.bazel Outdated
Comment on lines +127 to +129
"@score_cpp_policies//sanitizers/features:asan_ubsan_lsan",
"@score_cpp_policies//sanitizers/features:tsan",
"@score_cpp_policies//sanitizers/features:debug_symbols",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QCC is GCC under the hood. You use the wrong features.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Comment thread MODULE.bazel
"-latomic",
]},
llvm_version = "19.1.7",
stdlib = {"": "stdc++"},
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread quality/sanitizer/BUILD Outdated
Comment on lines +80 to +84
# ==============================================================================
# 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.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This stuff should end up in score_cpp_policies.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Comment on lines 16 to 25
pkg_tar(
name = "suppressions_pkg",
srcs = [
"//quality/sanitizer:repo_suppressions",
"@score_cpp_policies//sanitizers:suppressions",
],
mode = "0444",
package_dir = "sanitizers/suppressions",
visibility = ["//visibility:public"],
)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need the same for qcc to avoid issues like the ones I commented in MODULE.bazel.

@RSingh1511 RSingh1511 force-pushed the rs/test-gcc-pr52 branch 3 times, most recently from 04ac261 to 9618ac0 Compare April 21, 2026 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants