mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add -enable-cxx-interop flag and support for extern "C" {}
This commit is contained in:
@@ -501,6 +501,7 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
TargetArg = A->getValue();
|
||||
}
|
||||
|
||||
Opts.EnableCXXInterop |= Args.hasArg(OPT_enable_cxx_interop);
|
||||
Opts.EnableObjCInterop =
|
||||
Args.hasFlag(OPT_enable_objc_interop, OPT_disable_objc_interop,
|
||||
Target.isOSDarwin());
|
||||
|
||||
Reference in New Issue
Block a user