Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sanitizers on Linux #975

Merged
merged 2 commits into from
Jan 11, 2023
Merged

Fix sanitizers on Linux #975

merged 2 commits into from
Jan 11, 2023

Conversation

keith
Copy link
Member

@keith keith commented Jan 11, 2023

When a feature name doesn't start with swift. we check if it's enabled
by checking against the C++ features, not against all features.
Previously the Linux CC toolchain didn't support sanitizers so these
just never worked on Linux and the features were silently ignored from
Swift. Today these features were added to the Linux CC toolchain
bazelbuild/bazel@abae5ca
which broke Linux CI because ubsan doesn't work with Swift on Linux and
asan fails because of a memory leak in Swift

When a feature name doesn't start with `swift.` we check if it's enabled
by checking against the C++ features, not against all features.
Previously the Linux CC toolchain didn't support sanitizers so these
just never worked on Linux and the features were silently ignored from
Swift. Today these features were added to the Linux CC toolchain
bazelbuild/bazel@abae5ca
which broke Linux CI because ubsan doesn't work with Swift on Linux and
asan fails because of a memory leak in Swift
@keith keith merged commit c9bac72 into master Jan 11, 2023
@keith keith deleted the ks/fix-sanitizers-on-linux branch January 11, 2023 23:00
tymurmustafaiev pushed a commit to tymurmustafaiev/rules_swift that referenced this pull request Jul 19, 2023
When a feature name doesn't start with `swift.` we check if it's enabled
by checking against the C++ features, not against all features.
Previously the Linux CC toolchain didn't support sanitizers so these
just never worked on Linux and the features were silently ignored from
Swift. Today these features were added to the Linux CC toolchain

bazelbuild/bazel@abae5ca
which broke Linux CI because ubsan doesn't work with Swift on Linux and
asan fails because of a memory leak in Swift
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.

None yet

2 participants