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 ".")
153153 "--param" "build_mode=${CMAKE_CFG_INTDIR} " )
154154endif ()
155155
156+ if (SWIFT_TOOLS_ENABLE_LIBSWIFT)
157+ list (APPEND SWIFT_LIT_ARGS "--param" "libswift" )
158+ endif ()
159+
156160if (LLVM_USE_SANITIZER STREQUAL "Address" )
157161 set (SWIFT_ASAN_BUILD TRUE )
158162endif ()
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')
254254if native_swift_tools_path is not None :
255255 append_to_env_path (native_swift_tools_path )
256256
257+ if lit_config .params .get ('libswift' , None ) is not None :
258+ config .available_features .add ('libswift' )
259+
257260###
258261
259262# Discover the Swift binaries to use.
You can’t perform that action at this time.
0 commit comments