-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
[cxx-interop] Add -cxx-interoperability-mode
driver flag; deprecate `-…
#64088
Conversation
|
lib/Frontend/CompilerInvocation.cpp
Outdated
static CxxCompatMode validateCxxInteropCompatibilityMode(StringRef mode) { | ||
if (mode == "off") | ||
return CxxCompatMode::off; | ||
if (mode == "swift-5.7") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (mode == "swift-5.7") | |
if (mode == "swift-5.9") |
And similar
…enable-experimental-cxx-interop`.
804be33
to
f2a36ee
Compare
@swift-ci please smoke test |
Once swiftlang/swift-driver#1306 lands I'll make another patch to update the tests in this repo. |
@swift-ci please smoke test |
-cxx-compatibility-mode
driver flag; deprecate `-…-cxx-interoperability-mode
driver flag; deprecate `-…
@@ -32,15 +32,9 @@ module CxxTest { | |||
Add the C++ module to the include path and enable C++ interop: | |||
- Navigate to your project directory | |||
- In `Project` navigate to `Build Settings` -> `Swift Compiler` | |||
- Under `Custom Flags` -> `Other Swift Flags` add `-Xfrontend -enable-experimental-cxx-interop` | |||
- Under `Custom Flags` -> `Other Swift Flags` add `-cxx-compatibility-mode=swift-5.9` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Under `Custom Flags` -> `Other Swift Flags` add `-cxx-compatibility-mode=swift-5.9` | |
- Under `Custom Flags` -> `Other Swift Flags` add `-cxx-interoperability-mode=swift-5.9` |
Looks like this one got lost in the rebase.. oops
Follow up from #64088: compatibility -> interoperability
This adds a build setting to the package manifest that enables Swift/C++ Interoperability for a given Swift target: ``` .interoperabilityMode(.Cxx, version: "swift-5.9") ``` This relies on the new Swift driver flag for versioned C++ interop (see swiftlang/swift#64088). rdar://106756067
This adds a build setting to the package manifest that enables Swift/C++ Interoperability for a given Swift target: ``` .interoperabilityMode(.Cxx, version: "swift-5.9") ``` This relies on the new Swift driver flag for versioned C++ interop (see swiftlang/swift#64088). rdar://106756067
This adds a build setting to the package manifest that enables Swift/C++ Interoperability for a given Swift target: ``` .interoperabilityMode(.Cxx, version: "swift-5.9") ``` This relies on the new Swift driver flag for versioned C++ interop (see swiftlang/swift#64088). rdar://106756067
This adds a build setting to the package manifest that enables Swift/C++ Interoperability for a given Swift target: ``` .interoperabilityMode(.Cxx, version: "swift-5.9") ``` This relies on the new Swift driver flag for versioned C++ interop (see swiftlang/swift#64088). rdar://106756067
…enable-experimental-cxx-interop`.
Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.
Resolves #NNNNN, fix apple/llvm-project#MMMMM.