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