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

SwiftDriver: enable -sanitize= on Windows selectively #1804

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

compnerd
Copy link
Member

ASAN, UBSAN are available on Windows while TSAN is not. The toolchain has started building the runtimes and will be distributing them with the toolchain builds. This change enables the support in the driver for the santizers on Windows.

ASAN, UBSAN are available on Windows while TSAN is not. The toolchain
has started building the runtimes and will be distributing them with the
toolchain builds. This change enables the support in the driver for the
santizers on Windows.
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd compnerd requested review from artemcm and tshortli February 14, 2025 17:01
@compnerd
Copy link
Member Author

compnerd commented Feb 14, 2025

@artemcm one question here: what should we do? The llvm.org builds for Windows seem to have the single directory naming (where the architecture is slapped onto the library name). The per-target directory avoids that and is more convenient for composition.

Edit: note that clang will prefer the target triple path and the architecture suffixed variant is considered the "old style".

@artemcm
Copy link
Contributor

artemcm commented Feb 17, 2025

The "new" style seems like the way to go, especially since even clang logic prefers it. Let's go with it here, and then also consider if we should move other platforms to this layout.

@compnerd compnerd merged commit a9bf9bb into swiftlang:main Feb 18, 2025
3 checks passed
@compnerd compnerd deleted the sanitization branch February 18, 2025 17:03
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