OSDN Git Service

Tweaks for setting CMAKE_LINKER to lld-link
authorNico Weber <nicolasweber@gmx.de>
Tue, 21 May 2019 03:01:01 +0000 (03:01 +0000)
committerNico Weber <nicolasweber@gmx.de>
Tue, 21 May 2019 03:01:01 +0000 (03:01 +0000)
commit614d096016667810cc777db37d180accb2390cfb
treeeb99b01461ddaa96fe8e31ef714ccbd75b58292b
parent09a542b736ce8d59c14a859212428454270e80eb
Tweaks for setting CMAKE_LINKER to lld-link

- Just look for "lld-link", not "lld-link.exe".
  llvm/cmake/platforms/WinMsvc.cmake for example sets CMAKE_LINKER to
  lld-link without .exe

- Stop passing -gwarf to the compiler in sanitizer options when lld is
  enabled -- there's no reason to use different debug information keyed
  off the linker. (If this was for MinGW, we should check for that
  instead.)

Differential Revision: https://reviews.llvm.org/D62111

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361214 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/HandleLLVMOptions.cmake