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
[SR-6829] Expose configuration as compilation condition #4840
Labels
Comments
I think there was a reason that we didn't do this but I maybe wrong. /cc @ddunbar |
Xcode's project templates do have DEBUG for this, I believe, so it wouldn't be too surprising for SwiftPM to provide it. |
IIRC, swift the compiler didn't want to bake this in, but I agree it is reasonable for us to match precedent with Xcode here. |
@swift-ci create |
great, can I make this one? |
Sure, just assign it to yourself! |
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Additional Detail from JIRA
md5: e2e453dd87f87e9ecf62a11e3ddccfc2
Issue Description:
As of today we have
-DXcode
-DSWIFT_PACKAGE
What's missing:
-Drelease
-Ddebug
where "Release" and "Debug" is a Cofiguration enum raw values
This should go to SWIFT_ACTIVE_COMPILATION_CONDITIONS Xcode generated project
Use:
Rationale:
It is a common practice to enable/disable features or configuration depends on the debug/production build.
The text was updated successfully, but these errors were encountered: