From 6baa80d1e31b26f06c68afddd096d3d8c5961718 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Tue, 28 May 2019 08:32:08 -0700 Subject: 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. --- Modules/CMakeSwiftInformation.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/CMakeSwiftInformation.cmake b/Modules/CMakeSwiftInformation.cmake index 1477e8a..6eed283 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 -- cgit v0.12