@@ -454,7 +454,7 @@ function(_compile_swift_files
454
454
add_custom_command_target (
455
455
dependency_target
456
456
COMMAND
457
- "${line_directive_tool} " "${source_files} " --
457
+ "${PYTHON_EXECUTABLE} " " ${ line_directive_tool} " "${source_files} " --
458
458
"${swift_compiler_tool} " "${main_command} " ${swift_flags}
459
459
${output_option} ${embed_bitcode_option} "${source_files} "
460
460
${command_touch_standard_outputs}
@@ -485,7 +485,7 @@ function(_compile_swift_files
485
485
add_custom_command_target (
486
486
module_dependency_target
487
487
COMMAND
488
- "${line_directive_tool} " "${source_files} " --
488
+ "${PYTHON_EXECUTABLE} " " ${ line_directive_tool} " "${source_files} " --
489
489
"${swift_compiler_tool} " "-emit-module" "-o" "${module_file} " ${swift_flags}
490
490
"${source_files} "
491
491
${command_touch_module_outputs}
@@ -502,7 +502,7 @@ function(_compile_swift_files
502
502
add_custom_command_target (
503
503
sib_dependency_target
504
504
COMMAND
505
- "${line_directive_tool} " "${source_files} " --
505
+ "${PYTHON_EXECUTABLE} " " ${ line_directive_tool} " "${source_files} " --
506
506
"${swift_compiler_tool} " "-emit-sib" "-o" "${sib_file} " ${swift_flags} -Onone
507
507
"${source_files} "
508
508
${command_touch_sib_outputs}
@@ -518,7 +518,7 @@ function(_compile_swift_files
518
518
add_custom_command_target (
519
519
sibopt_dependency_target
520
520
COMMAND
521
- "${line_directive_tool} " "${source_files} " --
521
+ "${PYTHON_EXECUTABLE} " " ${ line_directive_tool} " "${source_files} " --
522
522
"${swift_compiler_tool} " "-emit-sib" "-o" "${sibopt_file} " ${swift_flags} -O
523
523
"${source_files} "
524
524
${command_touch_sibopt_outputs}
@@ -535,7 +535,7 @@ function(_compile_swift_files
535
535
add_custom_command_target (
536
536
sibgen_dependency_target
537
537
COMMAND
538
- "${line_directive_tool} " "${source_files} " --
538
+ "${PYTHON_EXECUTABLE} " " ${ line_directive_tool} " "${source_files} " --
539
539
"${swift_compiler_tool} " "-emit-sibgen" "-o" "${sibgen_file} " ${swift_flags}
540
540
"${source_files} "
541
541
${command_touch_sibgen_outputs}
0 commit comments