-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[CMake] Add option to perform SwiftParser validation by default #71173
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
Conversation
@swift-ci Please smoke test |
if(LLVM_ENABLE_ASSERTIONS) | ||
target_compile_options(${name} PRIVATE "$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xcc -UNDEBUG>") | ||
else() | ||
target_compile_options(${name} PRIVATE "$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xcc -DNDEBUG>") | ||
endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just a drive-by future proof fix. This ensures using the same NDEBUG
between C/C++ and Swift.
@swift-ci Please smoke test macOS |
Disabled by default. We'll enable it for some build presets. rdar://121545713
swift-syntax PR testing. assertion-enabled source-compat-suite presets i.e. 'DA' and 'RA'
c47bedb
to
a8db220
Compare
@swift-ci Please smoke test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks!
@swift-ci Please smoke test |
Disabled by default.
We'll enable it for some build presets.Enabled in
buildbot_swiftsyntax_{macos|linux}
andsource_compat_suite_{macos|linux}_*A
build presetsrdar://121545713