Displaying 1 result from an estimated 1 matches for "lto_launch".
2018 Jul 09
3
Failing compiler-rt LTO test
...lang to use ld.bfd as the
linker. ld.bfd has plugin support as described here:
https://llvm.org/docs/GoldPlugin.html
compiler-rt/test/lit.common.cfg isn't set up to know about ld.bfd:
elif config.host_os == 'Linux' and is_linux_lto_supported():
config.lto_supported = True
config.lto_launch = []
if config.use_lld:
config.lto_flags = ["-fuse-ld=lld"]
else:
config.lto_flags = ["-fuse-ld=gold"]
The test ends up passing -fuse-ld=gold and clang barfs.
It seems to me the correct thing to do is update lit.common.cfg to
support ld.bfd but I'm not sure exa...