Skip to content

Add --enable-asan option in swift-driver #64286

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

Merged
merged 1 commit into from
Mar 14, 2023
Merged

Conversation

wrotki
Copy link
Contributor

@wrotki wrotki commented Mar 10, 2023

This is to support building the swift-driver with -sanitize=address when the Swift build preset specifies enable-asan. Without this option and with enable-asan in picture the entire Swift build fails due to ASAN initialization failure in swift-driver. This commit is dependent on swiftlang/swift-driver#1310 being merged first

rdar://104661463

This is to support building the swift-driver with -sanitize=address when the Swift build preset specifies enable-asan. Without this option and with enable-asan in picture the entire Swift build fails due to ASAN initialization failure in swift-driver.
This commit is dependent on swiftlang/swift-driver#1310 being merged first

rdar://104661463
@wrotki wrotki requested a review from artemcm March 10, 2023 17:32
@wrotki
Copy link
Contributor Author

wrotki commented Mar 10, 2023

@swift-ci please test

@wrotki
Copy link
Contributor Author

wrotki commented Mar 10, 2023

@swift-ci please smoke test

@wrotki
Copy link
Contributor Author

wrotki commented Mar 10, 2023

Erm, started the test too early, missed your comment about cross-PR testing on the other commit, will retry with cross-PR

@wrotki
Copy link
Contributor Author

wrotki commented Mar 10, 2023

swiftlang/swift-driver#1310

preset=buildbot_incremental_asan,tools=RDA,stdlib=RDA
@swift-ci please smoke test

@wrotki
Copy link
Contributor Author

wrotki commented Mar 10, 2023

Well, the smoke test failed, but it was ran with asan preset - and it was able to actually compile Swift and run tests, which would fail before tests phase without this fix.
Going to rerun the test with swiftlang/swift-driver#1310 , but without the preset to show that the entire change is safe for normal Swift build

@wrotki
Copy link
Contributor Author

wrotki commented Mar 10, 2023

swiftlang/swift-driver#1310

@swift-ci please smoke test

@wrotki
Copy link
Contributor Author

wrotki commented Mar 11, 2023

swiftlang/swift-driver#1310

@swift-ci please smoke test linux platform

@wrotki
Copy link
Contributor Author

wrotki commented Mar 11, 2023

@swift-ci please test linux platform

@wrotki wrotki merged commit ed21728 into main Mar 14, 2023
@wrotki wrotki deleted the m_borsa_enable_driver_asan_build branch March 14, 2023 19:22
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