test: Use lld-link instead of lld-link2 as the LTO linker on Windows.
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 6 Aug 2015 18:37:54 +0000 (18:37 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 6 Aug 2015 18:37:54 +0000 (18:37 +0000)
The old COFF linker has been removed and lld-link now refers to the new linker.

llvm-svn: 244243

compiler-rt/test/lit.common.cfg

index a204348..074865d 100644 (file)
@@ -125,7 +125,7 @@ def is_linux_lto_supported():
   return True
 
 def is_windows_lto_supported():
-  return os.path.exists(os.path.join(config.llvm_tools_dir, 'lld-link2.exe'))
+  return os.path.exists(os.path.join(config.llvm_tools_dir, 'lld-link.exe'))
 
 if config.host_os == 'Darwin' and is_darwin_lto_supported():
   config.lto_supported = True
@@ -138,7 +138,7 @@ elif config.host_os == 'Linux' and is_linux_lto_supported():
 elif config.host_os == 'Windows' and is_windows_lto_supported():
   config.lto_supported = True
   config.lto_launch = []
-  config.lto_flags = ["-fuse-ld=lld-link2"]
+  config.lto_flags = ["-fuse-ld=lld"]
 else:
   config.lto_supported = False