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