We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73726fa commit 63e21d1Copy full SHA for 63e21d1
cmake/modules/SwiftSupport.cmake
@@ -13,6 +13,7 @@ function(add_swift_target target)
13
14
if(AST_TARGET)
15
list(APPEND compile_flags -target;${AST_TARGET})
16
+ list(APPEND link_flags -target;${AST_TARGET})
17
endif()
18
if(AST_MODULE_NAME)
19
list(APPEND compile_flags -module-name;${AST_MODULE_NAME})
@@ -25,6 +26,9 @@ function(add_swift_target target)
25
26
if(AST_MODULE_CACHE_PATH)
27
list(APPEND compile_flags -module-cache-path;${AST_MODULE_CACHE_PATH})
28
29
+ if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES RelWithDebInfo)
30
+ list(APPEND compile_flags -g)
31
+ endif()
32
if(AST_SWIFT_FLAGS)
33
foreach(flag ${AST_SWIFT_FLAGS})
34
list(APPEND compile_flags ${flag})
0 commit comments