Preprocessor Macros specified in build settings don't import to swift

Originator:james
Number:rdar://25322018 Date Originated:
Status:Open Resolved:
Product:Developer Tools Product Version:7.3
Classification:Serious Reproducible:Yes
 
Summary:
If you specify a preprocessor macro in the build settings they aren't imported to swift.

Steps to Reproduce:
1. Add a preprocessor macro in the build settings.
2. try to use it in swift.
3. compiler error.

Expected Results:
No compiler error, swift should be able to access the preprocessor macro.

Actual Results:
There is a compiler error about the macro missing.


Version:
Xcode 7.3

Notes:
This is a really serious issue stopping us from compiling our project, please fix ASAP.

Configuration:
This works in OS X 10.11, Swift 2.1 and Xcode 7.2.

But breaks in OS X 10.11, Swift 2.2 and Xcode 7.3. 

Specifying Xcode 7.3 to use Xcode 7.2's toolchain doesn't fix the issue.

Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!