Skip to content

SwiftDriver: enable -sanitize= on Windows selectively - #1804

Merged
compnerd merged 1 commit into
swiftlang:mainfrom
compnerd:sanitization
Feb 18, 2025
Merged

SwiftDriver: enable -sanitize= on Windows selectively#1804
compnerd merged 1 commit into
swiftlang:mainfrom
compnerd:sanitization

Conversation

@compnerd

Copy link
Copy Markdown
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
Copy Markdown
Member Author

@swift-ci please test

@compnerd
compnerd requested review from artemcm and tshortli February 14, 2025 17:01
@compnerd

compnerd commented Feb 14, 2025

Copy link
Copy Markdown
Member Author

@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

artemcm commented Feb 17, 2025

Copy link
Copy Markdown
Contributor

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
@compnerd
compnerd deleted the sanitization branch February 18, 2025 17:03
@tshortli tshortli mentioned this pull request Feb 19, 2025
tshortli added a commit that referenced this pull request Feb 19, 2025
@tshortli

Copy link
Copy Markdown
Contributor

Reverted in #1816 as it broke Linux CI.

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.

3 participants