File tree 1 file changed +7
-6
lines changed 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -937,17 +937,18 @@ function(process_llvm_pass_plugins)
937
937
DESTINATION ${LLVM_INSTALL_PACKAGE_DIR}
938
938
COMPONENT cmake-exports)
939
939
940
- file (WRITE "${LLVM_BINARY_DIR} /include/llvm/Support/Extension.def.tmp" "//extension handlers\n " )
940
+ set (ExtensionDef "${LLVM_BINARY_DIR} /include/llvm/Support/Extension.def" )
941
+ file (WRITE "${ExtensionDef} .tmp" "//extension handlers\n " )
941
942
foreach (llvm_extension ${LLVM_STATIC_EXTENSIONS} )
942
- file (APPEND "${LLVM_BINARY_DIR} /include/llvm/Support/Extension.def .tmp" "HANDLE_EXTENSION(${llvm_extension} )\n " )
943
+ file (APPEND "${ExtensionDef} .tmp" "HANDLE_EXTENSION(${llvm_extension} )\n " )
943
944
endforeach ()
944
- file (APPEND "${LLVM_BINARY_DIR} /include/llvm/Support/Extension.def .tmp" "#undef HANDLE_EXTENSION\n " )
945
+ file (APPEND "${ExtensionDef} .tmp" "#undef HANDLE_EXTENSION\n " )
945
946
946
947
# only replace if there's an actual change
947
948
execute_process (COMMAND ${CMAKE_COMMAND} -E copy_if_different
948
- "${LLVM_BINARY_DIR} /include/llvm/Support/Extension.def .tmp"
949
- "${LLVM_BINARY_DIR} /include/llvm/Support/Extension.def " )
950
- file (REMOVE "${LLVM_BINARY_DIR} /include/llvm/Support/Extension.def .tmp" )
949
+ "${ExtensionDef} .tmp"
950
+ "${ExtensionDef} " )
951
+ file (REMOVE "${ExtensionDef} .tmp" )
951
952
endif ()
952
953
endfunction ()
953
954
You can’t perform that action at this time.
0 commit comments