Skip to content

[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

Merged
merged 2 commits into from
Apr 12, 2024

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Jan 26, 2024

Disabled by default. We'll enable it for some build presets.

Enabled in buildbot_swiftsyntax_{macos|linux} and source_compat_suite_{macos|linux}_*A build presets

rdar://121545713

@rintaro rintaro requested a review from eeckstein as a code owner January 26, 2024 05:07
@rintaro
Copy link
Member Author

rintaro commented Jan 26, 2024

@swift-ci Please smoke test

Comment on lines +69 to +73
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()
Copy link
Member Author

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.

@rintaro
Copy link
Member Author

rintaro commented Jan 26, 2024

@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'
@rintaro rintaro force-pushed the cmake-parservalidatoin branch from c47bedb to a8db220 Compare January 26, 2024 06:32
@rintaro
Copy link
Member Author

rintaro commented Jan 26, 2024

@swift-ci Please smoke test

Copy link
Contributor

@eeckstein eeckstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks!

@rintaro
Copy link
Member Author

rintaro commented Apr 12, 2024

@swift-ci Please smoke test

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