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)
942942 DESTINATION ${LLVM_INSTALL_PACKAGE_DIR}
943943 COMPONENT cmake-exports)
944944
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 " )
946947 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 " )
948949 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 " )
950951
951952 # only replace if there's an actual change
952953 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" )
956957 endif ()
957958endfunction ()
958959
You can’t perform that action at this time.
0 commit comments