summaryrefslogtreecommitdiff
path: root/Modules/CMakeSwiftInformation.cmake
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2019-05-28 08:32:08 -0700
committerSaleem Abdulrasool <compnerd@compnerd.org>2019-05-28 09:21:41 -0700
commit6baa80d1e31b26f06c68afddd096d3d8c5961718 (patch)
tree5f4576e2ebe203347f644ff29f4ed916f559a1e9 /Modules/CMakeSwiftInformation.cmake
parent45e4f470c02b16622c281371d30ecc0f7d71e5c6 (diff)
downloadcmake-6baa80d1e31b26f06c68afddd096d3d8c5961718.tar.gz
Modules: correct linker wrapper flag for Swift
This was sitting locally but was missed in previous commits. This enables the use of `LINKER:` when building Swift code bases.
Diffstat (limited to 'Modules/CMakeSwiftInformation.cmake')
-rw-r--r--Modules/CMakeSwiftInformation.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/CMakeSwiftInformation.cmake b/Modules/CMakeSwiftInformation.cmake
index 1477e8abdb..6eed283667 100644
--- a/Modules/CMakeSwiftInformation.cmake
+++ b/Modules/CMakeSwiftInformation.cmake
@@ -19,10 +19,11 @@ endif()
set(CMAKE_INCLUDE_FLAG_Swift "-I ")
-set(CMAKE_Swift_DEFINE_FLAG -D)
set(CMAKE_Swift_COMPILE_OPTIONS_TARGET "-target ")
set(CMAKE_Swift_COMPILER_ARG1 -frontend)
+set(CMAKE_Swift_DEFINE_FLAG -D)
set(CMAKE_Swift_FRAMEWORK_SEARCH_FLAG "-F ")
+set(CMAKE_Swift_LINKER_WRAPPER_FLAG "-Xlinker" " ")
set(CMAKE_Swift_RESPONSE_FILE_LINK_FLAG @)
# NOTE(compnerd) use the short form for convenience and ease of search. They