This is an archive of the discontinued LLVM Phabricator instance.

[LLD] Ignore ELF tests when ld.lld defaults to MinGW
ClosedPublic

Authored by mati865 on Oct 7 2020, 11:03 AM.

Diff Detail

Event Timeline

mati865 created this revision.Oct 7 2020, 11:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 7 2020, 11:03 AM
mati865 requested review of this revision.Oct 7 2020, 11:03 AM

Looks sensible to me, but I'd defer to @MaskRay to approve.

I wonder if it'd be possible to add some custom substitution in the lit config, to have it replace ld.lld with ld.lld -m <some-elf> in this case... Or does that fail if -m is explicitly specified but turns out to be the wrong architecture compared to what the test actually does?

MaskRay accepted this revision.Oct 7 2020, 2:32 PM

Looks sensible to me, but I'd defer to @MaskRay to approve.

I wonder if it'd be possible to add some custom substitution in the lit config, to have it replace ld.lld with ld.lld -m <some-elf> in this case... Or does that fail if -m is explicitly specified but turns out to be the wrong architecture compared to what the test actually does?

There will be an error ... is incompatible with ... with an object file with a wrong architecture.

This revision is now accepted and ready to land.Oct 7 2020, 2:32 PM

I wonder if it'd be possible to add some custom substitution in the lit config, to have it replace ld.lld with ld.lld -m <some-elf> in this case...

I think I could come up with script to insert correct -m <arch> but that is few thousands of files AFAIK.

This revision was landed with ongoing or failed builds.Oct 7 2020, 11:40 PM
This revision was automatically updated to reflect the committed changes.