-
Notifications
You must be signed in to change notification settings - Fork 10.5k
🍒[cxx-interop] Lower macOS deployment target version for the Cxx module #69605
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,8 @@ add_swift_target_library(swiftCxx STATIC NO_LINK_NAME IS_STDLIB IS_SWIFT_ONLY IS | |
# For functionality that depends on the C++ stdlib, use C++ stdlib overlay (`swiftstd` module). | ||
-Xcc -nostdinc++ | ||
|
||
DEPLOYMENT_VERSION_OSX ${COMPATIBILITY_MINIMUM_DEPLOYMENT_VERSION_OSX} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems like this needs to be done for all Apple OS's, as we do for the various compatibility libraries, e.g.,
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done, I added other Apple platforms here |
||
|
||
LINK_FLAGS "${SWIFT_RUNTIME_SWIFT_LINK_FLAGS}" | ||
DEPENDS ${SWIFT_CXX_DEPS} | ||
INSTALL_IN_COMPONENT compiler | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,8 @@ add_swift_target_library(swiftCxxStdlib STATIC NO_LINK_NAME IS_STDLIB IS_SWIFT_O | |
SWIFT_COMPILE_FLAGS_LINUX | ||
${SWIFT_SDK_LINUX_CXX_OVERLAY_SWIFT_COMPILE_FLAGS} | ||
|
||
DEPLOYMENT_VERSION_OSX ${COMPATIBILITY_MINIMUM_DEPLOYMENT_VERSION_OSX} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same comment here about all Apple platforms |
||
|
||
LINK_FLAGS "${SWIFT_RUNTIME_SWIFT_LINK_FLAGS}" | ||
TARGET_SDKS ALL_APPLE_PLATFORMS LINUX WINDOWS | ||
INSTALL_IN_COMPONENT compiler | ||
|
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.
I'm surprised that any of these changes are needed, given that
add_swift_target_library
is already being used with theseDEPLOYMENT_VERSION_*
options elsewhere. Are you sure these changes here are necessary?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.
add_swift_target_library
currently only applies these options for C/C++ source files. Here we're making it applyDEPLOYMENT_VERSION_*
for Swift modules as well.