File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,10 @@ if(NOT CMAKE_CFG_INTDIR STREQUAL ".")
153
153
"--param" "build_mode=${CMAKE_CFG_INTDIR} " )
154
154
endif ()
155
155
156
+ if (SWIFT_TOOLS_ENABLE_LIBSWIFT )
157
+ list (APPEND SWIFT_LIT_ARGS "--param" "libswift" )
158
+ endif ()
159
+
156
160
if (LLVM_USE_SANITIZER STREQUAL "Address" )
157
161
set (SWIFT_ASAN_BUILD TRUE )
158
162
endif ()
Original file line number Diff line number Diff line change @@ -254,6 +254,9 @@ native_swift_tools_path = lit_config.params.get('native_swift_tools_path')
254
254
if native_swift_tools_path is not None :
255
255
append_to_env_path (native_swift_tools_path )
256
256
257
+ if lit_config .params .get ('libswift' , None ) is not None :
258
+ config .available_features .add ('libswift' )
259
+
257
260
###
258
261
259
262
# Discover the Swift binaries to use.
You can’t perform that action at this time.
0 commit comments