File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -688,9 +688,9 @@ function(_compile_swift_files
688
688
# need to work around this by avoiding long command line arguments. This can
689
689
# be achieved by writing the list of file paths to a file, then reading that
690
690
# list in the Python script.
691
- string (RANDOM file_name )
692
- set (file_path "${CMAKE_CURRENT_BINARY_DIR} /${file_name} .txt" )
693
691
string (REPLACE ";" "'\n '" source_files_quoted "${source_files} " )
692
+ string (SHA1 file_name "'${source_files_quoted} '" )
693
+ set (file_path "${CMAKE_CURRENT_BINARY_DIR} /${file_name} .txt" )
694
694
file (WRITE "${file_path} " "'${source_files_quoted} '" )
695
695
696
696
# If this platform/architecture combo supports backward deployment to old
@@ -717,7 +717,7 @@ function(_compile_swift_files
717
717
OUTPUT ${standard_outputs}
718
718
DEPENDS
719
719
${swift_compiler_tool_dep}
720
- ${file_path} ${ source_files} ${SWIFTFILE_DEPENDS}
720
+ ${source_files} ${SWIFTFILE_DEPENDS}
721
721
${swift_ide_test_dependency}
722
722
${create_dirs_dependency_target}
723
723
${copy_legacy_layouts_dep}
You can’t perform that action at this time.
0 commit comments