forked from OSchip/llvm-project
[PECOFF] Rename link.exe -> lld-link.exe.
Creating the file "link.exe" made some confusion, so it's better to name it lld-link.exe, as we did for CL (clang-cl.exe). llvm-svn: 204509
This commit is contained in:
parent
838282ec3a
commit
83ba74fa3f
|
@ -78,6 +78,7 @@ Flavor strToFlavor(StringRef str) {
|
|||
return llvm::StringSwitch<Flavor>(str)
|
||||
.Case("gnu", Flavor::gnu_ld)
|
||||
.Case("link", Flavor::win_link)
|
||||
.Case("lld-link", Flavor::win_link)
|
||||
.Case("darwin", Flavor::darwin_ld)
|
||||
.Case("core", Flavor::core)
|
||||
.Case("ld", Flavor::gnu_ld) // deprecated
|
||||
|
|
|
@ -9,7 +9,7 @@ target_link_libraries(lld
|
|||
install(TARGETS lld
|
||||
RUNTIME DESTINATION bin)
|
||||
|
||||
# Create the link[.exe] symlink in the build directory. If symlink is not
|
||||
# Create the lld-link[.exe] symlink in the build directory. If symlink is not
|
||||
# supported by the operating system, create a copy instead.
|
||||
if(UNIX)
|
||||
set(command create_symlink)
|
||||
|
@ -17,6 +17,6 @@ else()
|
|||
set(command copy)
|
||||
endif()
|
||||
set(src "${LLVM_RUNTIME_OUTPUT_INTDIR}/lld${CMAKE_EXECUTABLE_SUFFIX}")
|
||||
set(dst "${LLVM_RUNTIME_OUTPUT_INTDIR}/link${CMAKE_EXECUTABLE_SUFFIX}")
|
||||
set(dst "${LLVM_RUNTIME_OUTPUT_INTDIR}/lld-link${CMAKE_EXECUTABLE_SUFFIX}")
|
||||
add_custom_command(TARGET lld POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E ${command} ${src} ${dst})
|
||||
|
|
Loading…
Reference in New Issue