Skip to content
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-909] Constants declared in GCC_PREPROCESSOR_DEFINITIONS no longer imported #43521

Open
ChristopherRogers opened this issue Mar 10, 2016 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@ChristopherRogers
Copy link
Contributor

Previous ID SR-909
Radar None
Original Reporter @ChristopherRogers
Type Bug
Status Reopened
Resolution
Environment

Swift 2.2 (Xcode 7.3 beta 5)

Additional Detail from JIRA
Votes 10
Component/s Compiler
Labels Bug, ClangImporter
Assignee None
Priority Medium

md5: 399c0ba7dd16e011584c2a64243943ea

Issue Description:

Constants declared in GCC_PREPROCESSOR_DEFINITIONS are no longer imported into Swift.

Example:
GCC_PREPROCESSOR_DEFINITIONS = MY_INT=42 MY_STR='"$(FOO)"' MY_OBJC_STR='@"$(BAR)"'

MY_INT, MY_STR, and MY_OBJC_STR used to be accessible from Swift 2.1.1 but are no longer in Swift 2.2.

@belkadan
Copy link
Contributor

This would be an Xcode bug rather than a Swift bug. Please file a Radar.

@belkadan
Copy link
Contributor

I apologize; it is indeed a Swift-side issue! Reopening.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself
Projects
None yet
Development

No branches or pull requests

2 participants