forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Build System: CMake] Move the CompatibilityDynamicReplacements libra…
…ry into the stdlib/toolchain source directory.
- Loading branch information
Showing
5 changed files
with
30 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
stdlib/public/CompatibilityDynamicReplacements/CMakeLists.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
stdlib/toolchain/CompatibilityDynamicReplacements/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
set(library_name "swiftCompatibilityDynamicReplacements") | ||
|
||
add_swift_target_library("${library_name}" STATIC TARGET_LIBRARY | ||
DynamicReplaceable.cpp | ||
|
||
TARGET_SDKS ${SWIFT_APPLE_PLATFORMS} | ||
|
||
C_COMPILE_FLAGS ${CXX_COMPILE_FLAGS} | ||
LINK_FLAGS ${CXX_LINK_FLAGS} | ||
SWIFT_COMPILE_FLAGS ${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS} | ||
|
||
INSTALL_IN_COMPONENT compiler | ||
INSTALL_WITH_SHARED) | ||
|
||
|
||
# FIXME: We need a more flexible mechanism to add lipo targets generated by | ||
# add_swift_target_library to the ALL target. Until then this hack is necessary | ||
# to ensure these libraries build. | ||
foreach(sdk ${SWIFT_SDKS}) | ||
set(target_name "${library_name}-${SWIFT_SDK_${sdk}_LIB_SUBDIR}") | ||
if(NOT TARGET "${target_name}") | ||
continue() | ||
endif() | ||
|
||
set_target_properties("${target_name}" | ||
PROPERTIES | ||
EXCLUDE_FROM_ALL FALSE) | ||
endforeach() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters