Skip to content

Commit c1d0739

Browse files
Avoid creating \dev\null file when building on Windows (#1697)
* Avoid creating \dev\null file on Windows * Use a real file path * Use -typecheck instead of a dummy output file * Remove input file to -typecheck swiftc call * Fix invocation
1 parent 1a7ae03 commit c1d0739

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ execute_process(
3737
"${CMAKE_Swift_COMPILER}"
3838
-Xfrontend -disable-implicit-string-processing-module-import
3939
-Xfrontend -parse-stdlib
40-
-c - -o /dev/null
41-
INPUT_FILE
42-
"${CMAKE_BINARY_DIR}/tmp/empty-check-string-processing.swift"
40+
-typecheck "${CMAKE_BINARY_DIR}/tmp/empty-check-string-processing.swift"
4341
OUTPUT_QUIET ERROR_QUIET
4442
RESULT_VARIABLE
4543
SWIFT_SUPPORTS_DISABLE_IMPLICIT_STRING_PROCESSING_MODULE_IMPORT)

0 commit comments

Comments
 (0)