Skip to content

Commit 2afc46d

Browse files
authored
Merge pull request #3290 from rintaro/cmake-swift-compiler-capability-stdin
[CMake] Avoid 'swiftc -parse' with stdin to check compiler capability
2 parents 4c18fac + cdb8ae3 commit 2afc46d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmake/modules/SwiftCompilerCapability.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
function(swift_supports_compiler_arguments out_var)
1515
file(WRITE "${CMAKE_BINARY_DIR}/tmp/dummy.swift" "")
1616
execute_process(
17-
COMMAND "${CMAKE_Swift_COMPILER}" -parse ${ARGN} -
18-
INPUT_FILE "${CMAKE_BINARY_DIR}/tmp/dummy.swift"
17+
COMMAND "${CMAKE_Swift_COMPILER}" -parse ${ARGN} "${CMAKE_BINARY_DIR}/tmp/dummy.swift"
1918
OUTPUT_QUIET ERROR_QUIET
2019
RESULT_VARIABLE result
2120
)

0 commit comments

Comments
 (0)