diff --git a/CMakeLists.txt b/CMakeLists.txt index 25df18647c7..0dda63270d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,9 +33,7 @@ execute_process( "${CMAKE_Swift_COMPILER}" -Xfrontend -disable-implicit-string-processing-module-import -Xfrontend -parse-stdlib - -c - -o /dev/null - INPUT_FILE - "${CMAKE_BINARY_DIR}/tmp/empty-check-string-processing.swift" + -typecheck "${CMAKE_BINARY_DIR}/tmp/empty-check-string-processing.swift" OUTPUT_QUIET ERROR_QUIET RESULT_VARIABLE SWIFT_SUPPORTS_DISABLE_IMPLICIT_STRING_PROCESSING_MODULE_IMPORT)