Browse Source

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.
Saleem Abdulrasool 6 years ago
parent
commit
6baa80d1e3
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Modules/CMakeSwiftInformation.cmake

+ 2 - 1
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