Skip to content

Commit 75ddb7c

Browse files
authored
Update CMakeLists.txt
Explicitly invoke the script executor rather than the script as running a script is meaningless. Shebangs are not a portable manner of indicating the script executor and worse yet do not guarantee portability on such systems either. Ideally the shebang line would be removed from the script. Thanks to @pcbeard for reporting the issue!
1 parent 610a4a5 commit 75ddb7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Option/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ add_custom_command(
1515
OUTPUT
1616
${features_file_dest}
1717
COMMAND
18-
${features_merger} -f ${features_file_swift_src} -p \"\" -f ${features_file_clang_src} -p clang- > ${features_file_dest}
18+
$<TARGET_FILE:Python3::Interpreter> ${features_merger} -f ${features_file_swift_src} -p \"\" -f ${features_file_clang_src} -p clang- > ${features_file_dest}
1919
DEPENDS
2020
${features_merger}
2121
${features_file_swift_src}

0 commit comments

Comments
 (0)