-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Build System: CMake] Install the apinotes in the 'compiler' install component. #24419
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 |
---|---|---|
|
@@ -4,6 +4,13 @@ set(swift_platform_sources | |
set(swift_platform_gyb_sources | ||
tgmath.swift.gyb) | ||
|
||
set(darwin_depends) | ||
if(NOT BUILD_STANDALONE) | ||
# This is overly conservative, but we have so few API notes files that | ||
# haven't migrated to the Swift repo that it's probably fine in practice. | ||
list(APPEND darwin_depends copy_apinotes) | ||
endif() | ||
|
||
add_swift_target_library(swiftDarwin ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_SDK_OVERLAY | ||
${swift_platform_sources} | ||
POSIXError.swift | ||
|
@@ -19,9 +26,7 @@ add_swift_target_library(swiftDarwin ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_SDK_ | |
LINK_FLAGS "${SWIFT_RUNTIME_SWIFT_LINK_FLAGS}" | ||
TARGET_SDKS ALL_APPLE_PLATFORMS | ||
|
||
# This is overly conservative, but we have so few API notes files that | ||
# haven't migrated to the Swift repo that it's probably fine in practice. | ||
DEPENDS copy_apinotes) | ||
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. I think this is still relevant; this is about the build you're in the process of doing rather than the install. 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. I've updated this to keep the dependency when building the standard library with the compiler, but also allow building standalone without the dependency. |
||
DEPENDS ${darwin_depends}) | ||
|
||
add_swift_target_library(swiftGlibc ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_SDK_OVERLAY | ||
${swift_platform_sources} | ||
|
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.
As long as they don't get installed on Linux…
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.
Maybe we should only make this target if building for an Apple platform.
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.
It's tricky because of cross-compilers, but that might be a case we can afford to ignore for now.