Skip to content

Commit e4d1841

Browse files
committed
[CMake] Allow testing a swift tools build but with a stdlib that is built externally
1 parent a923281 commit e4d1841

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ foreach(SDK ${SWIFT_SDKS})
250250
set(LIT_ARGS "${SWIFT_TEST_EXTRA_ARGS} ${LLVM_LIT_ARGS}")
251251
separate_arguments(LIT_ARGS)
252252

253-
if(NOT SWIFT_BUILD_STDLIB)
253+
if(NOT SWIFT_BUILD_STDLIB AND NOT SWIFT_PATH_TO_EXTERNAL_STDLIB_BUILD)
254254
list(APPEND LIT_ARGS
255255
"--param" "test_sdk_overlay_dir=${SWIFTLIB_DIR}/${SWIFT_SDK_${SDK}_LIB_SUBDIR}")
256256
endif()

0 commit comments

Comments
 (0)