mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add compile time config flag for detecting objc-interop.
Swift SVN r22605
This commit is contained in:
@@ -90,6 +90,12 @@ static void updateTargetConfigurationOptions(LangOptions &LangOpts,
|
||||
llvm_unreachable("Unsupported target architecture");
|
||||
}
|
||||
|
||||
// Set the "runtime" target configuration.
|
||||
if (triple.isOSDarwin())
|
||||
LangOpts.addTargetConfigOption("_runtime", "_ObjC");
|
||||
else
|
||||
LangOpts.addTargetConfigOption("_runtime", "_Native");
|
||||
|
||||
// Set the minimum platform version for deployment.
|
||||
unsigned major, minor, revision;
|
||||
if (triple.isMacOSX()) {
|
||||
|
||||
Reference in New Issue
Block a user