Skip to content

Commit d9a4624

Browse files
committed
[CMake] Fix detecting -disable-implicit-string-processing-module-import
The check command used to always fail because it fails to load stdlib. Workaround it by adding '-parse-stdlib' to the check command.
1 parent 808d403 commit d9a4624

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ execute_process(
3232
COMMAND
3333
"${CMAKE_Swift_COMPILER}"
3434
-Xfrontend -disable-implicit-string-processing-module-import
35+
-Xfrontend -parse-stdlib
3536
-c - -o /dev/null
3637
INPUT_FILE
3738
"${CMAKE_BINARY_DIR}/tmp/empty-check-string-processing.swift"

0 commit comments

Comments
 (0)