Skip to content

Commit 137c019

Browse files
authored
Merge pull request swiftlang#6822 from hughbe/line-directive-python
2 parents aa1bec2 + 89205d8 commit 137c019

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cmake/modules/SwiftSource.cmake

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ function(_compile_swift_files
454454
add_custom_command_target(
455455
dependency_target
456456
COMMAND
457-
"${line_directive_tool}" "${source_files}" --
457+
"${PYTHON_EXECUTABLE}" "${line_directive_tool}" "${source_files}" --
458458
"${swift_compiler_tool}" "${main_command}" ${swift_flags}
459459
${output_option} ${embed_bitcode_option} "${source_files}"
460460
${command_touch_standard_outputs}
@@ -485,7 +485,7 @@ function(_compile_swift_files
485485
add_custom_command_target(
486486
module_dependency_target
487487
COMMAND
488-
"${line_directive_tool}" "${source_files}" --
488+
"${PYTHON_EXECUTABLE}" "${line_directive_tool}" "${source_files}" --
489489
"${swift_compiler_tool}" "-emit-module" "-o" "${module_file}" ${swift_flags}
490490
"${source_files}"
491491
${command_touch_module_outputs}
@@ -502,7 +502,7 @@ function(_compile_swift_files
502502
add_custom_command_target(
503503
sib_dependency_target
504504
COMMAND
505-
"${line_directive_tool}" "${source_files}" --
505+
"${PYTHON_EXECUTABLE}" "${line_directive_tool}" "${source_files}" --
506506
"${swift_compiler_tool}" "-emit-sib" "-o" "${sib_file}" ${swift_flags} -Onone
507507
"${source_files}"
508508
${command_touch_sib_outputs}
@@ -518,7 +518,7 @@ function(_compile_swift_files
518518
add_custom_command_target(
519519
sibopt_dependency_target
520520
COMMAND
521-
"${line_directive_tool}" "${source_files}" --
521+
"${PYTHON_EXECUTABLE}" "${line_directive_tool}" "${source_files}" --
522522
"${swift_compiler_tool}" "-emit-sib" "-o" "${sibopt_file}" ${swift_flags} -O
523523
"${source_files}"
524524
${command_touch_sibopt_outputs}
@@ -535,7 +535,7 @@ function(_compile_swift_files
535535
add_custom_command_target(
536536
sibgen_dependency_target
537537
COMMAND
538-
"${line_directive_tool}" "${source_files}" --
538+
"${PYTHON_EXECUTABLE}" "${line_directive_tool}" "${source_files}" --
539539
"${swift_compiler_tool}" "-emit-sibgen" "-o" "${sibgen_file}" ${swift_flags}
540540
"${source_files}"
541541
${command_touch_sibgen_outputs}

0 commit comments

Comments
 (0)