Use GetLinkerPath method instead of hard-coding linker name.
Change should allow -fuse-ld to work on the Hexagon target.
Differential D53038
[Hexagon] Use GetLinkerPath method instead of hard-coded linker name. sidneym on Oct 9 2018, 1:21 PM. Authored by
Details Use GetLinkerPath method instead of hard-coding linker name. Change should allow -fuse-ld to work on the Hexagon target.
Diff Detail
Event TimelineComment Actions A bisect revealed this change as the source of test failures on my Red Hat Fedora 28 Linux box. How was/is this tested? Command Output (stderr):/home/dave/s/lc/tools/clang/test/Driver/linux-ld.c:882:19: error: CHECK-HEXAGON: expected string not found in input ^ <stdin>:1:1: note: scanning from here ^ Testing Time: 43.34s Failing Tests (2): Clang :: Driver/hexagon-toolchain-elf.c Clang :: Driver/linux-ld.c Expected Passes : 34506 Expected Failures : 82 Unsupported Tests : 8838 Unexpected Failures: 2 FAILED: CMakeFiles/check-all Comment Actions Seems like the test cases do not consider the possibility of CLANG_DEFAULT_LINKER being set. If CLANG_DEFAULT_LINKER was set to "hexagon-link" these tests would probably pass. I'm checking this out now. |