File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -145,8 +145,12 @@ if(NOT SWIFT_INCLUDE_TOOLS)
145
145
else ()
146
146
list (APPEND SWIFT_LIT_ARGS
147
147
"--path=${SWIFT_NATIVE_LLVM_TOOLS_PATH} "
148
+ "--param" "swift_native_llvm_tools_path=${SWIFT_NATIVE_LLVM_TOOLS_PATH} "
148
149
"--path=${SWIFT_NATIVE_CLANG_TOOLS_PATH} "
149
- "--path=${SWIFT_NATIVE_SWIFT_TOOLS_PATH} " )
150
+ "--param" "swift_native_clang_tools_path=${SWIFT_NATIVE_CLANG_TOOLS_PATH} "
151
+ "--path=${SWIFT_NATIVE_SWIFT_TOOLS_PATH} "
152
+ "--param" "swift_native_swift_tools_path=${SWIFT_NATIVE_SWIFT_TOOLS_PATH} "
153
+ )
150
154
endif ()
151
155
if (SWIFT_BUILD_STDLIB )
152
156
list (APPEND SWIFT_LIT_ARGS
Original file line number Diff line number Diff line change @@ -976,6 +976,10 @@ if run_vendor == 'apple':
976
976
"swiftSwiftOnoneSupport" ]:
977
977
swift_execution_tests_extra_flags += ' -Xlinker -l%s' % library
978
978
979
+ swift_native_clang_tools_path = lit_config .params .get ('swift_native_clang_tools_path' , None )
980
+ if swift_native_clang_tools_path :
981
+ swift_execution_tests_extra_flags += ' -Xlinker -lto_library -Xlinker %s/../lib/libLTO.dylib' % swift_native_clang_tools_path
982
+
979
983
xcrun_prefix = (
980
984
"xcrun --toolchain %s --sdk %r" %
981
985
(config .darwin_xcrun_toolchain , config .variant_sdk ))
You can’t perform that action at this time.
0 commit comments