[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:
Rui Ueyama 2014-03-21 20:41:48 +00:00
parent 838282ec3a
commit 83ba74fa3f
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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})