Displaying 1 result from an estimated 1 matches for "is_linux_lto_support".
Did you mean:
is_linux_lto_supported
2018 Jul 09
3
Failing compiler-rt LTO test
...estack/lto.c.
I believe the issue is that we've configured clang 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 li...