This is an archive of the discontinued LLVM Phabricator instance.

[BOLT] Add ld.lld substitution
ClosedPublic

Authored by Amir on Feb 1 2022, 1:56 PM.

Details

Summary

Register ld.lld substition (tests were failing)

Diff Detail

Event Timeline

Amir created this revision.Feb 1 2022, 1:56 PM
Amir requested review of this revision.Feb 1 2022, 1:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 1 2022, 1:56 PM
Amir updated this revision to Diff 405101.Feb 1 2022, 2:23 PM

Use ld.lld instead of lld

yota9 accepted this revision.Feb 1 2022, 2:24 PM
This revision is now accepted and ready to land.Feb 1 2022, 2:24 PM
yota9 requested changes to this revision.Feb 3 2022, 2:45 PM

It seems to be that

llvm_config.use_lld()

Should be enough to satisfy the test system :)

This revision now requires changes to proceed.Feb 3 2022, 2:45 PM
Amir added a comment.Feb 4 2022, 9:29 AM

It seems to be that

llvm_config.use_lld()

Should be enough to satisfy the test system :)

I've removed that invocation (use_lld) as it wasn't checking the env variable.

Amir updated this revision to Diff 406123.Feb 4 2022, 4:00 PM

Rebase

yota9 added a comment.Feb 4 2022, 4:13 PM

AFAIU The build failure is still related to this change:

/var/lib/buildkite-agent/builds/llvm-project/build/tools/bolt/test/X86/Output/gdbindex.test.script: line 3: /usr/bin/ld.lld: No such file or directory
Amir added a comment.Feb 4 2022, 4:33 PM

AFAIU The build failure is still related to this change:

/var/lib/buildkite-agent/builds/llvm-project/build/tools/bolt/test/X86/Output/gdbindex.test.script: line 3: /usr/bin/ld.lld: No such file or directory

Right. It's likely no such file actually exists and the tool has a suffix (/usr/bin/ld.lld-13).

yota9 accepted this revision.Feb 4 2022, 4:43 PM

I see, thanks!

This revision is now accepted and ready to land.Feb 4 2022, 4:43 PM
This revision was automatically updated to reflect the committed changes.