The Fuchsia driver relies on lld so invoke clang with -fuse-ld=lld. This gets the test passing when the clang default linker is something other than lld.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
We don't actively support gold in Fuchsia driver and currently have no plans on doing so. We should instead modify the driver to always use lld even if gold is set as the default Clang linker.
The Fuchsia driver relies on lld so invoke clang with -fuse-ld=lld. This gets the test passing when the clang default linker is something other than lld.
The Fuchsia driver relies on lld so invoke clang with -fuse-ld=lld. This gets the test passing when the clang default linker is something other than lld.
Does it work if lld is not installed at all? I believe if the driver cannot find a specified linker, it reports an error instead of trying to execute a nonexistent file.
The test will fail if lld is not available, which is no worse than the situation before this change. There does not seem to be a way to disable a test if lld is not available. I couldn't find anything appropriate for a REQUIRES in the test. I would like to leave that work for another time. This at least gets things working a little better.