This is an archive of the discontinued LLVM Phabricator instance.

[lld][WebAssembly] Require double dash for modern linker flags
ClosedPublic

Authored by sbc100 on May 26 2022, 2:10 PM.

Details

Summary

This matches the behaviour of the ELF backend (in fact this change
is mostly just copying directly from ELF/Options.td).

Diff Detail

Event Timeline

sbc100 created this revision.May 26 2022, 2:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 26 2022, 2:10 PM
Herald added subscribers: pmatos, asb, ormris and 7 others. · View Herald Transcript
sbc100 requested review of this revision.May 26 2022, 2:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 26 2022, 2:10 PM
dschuff accepted this revision.May 26 2022, 2:21 PM

LGTM but will this require a change to clang and/or EMCC first?

This revision is now accepted and ready to land.May 26 2022, 2:21 PM

LGTM but will this require a change to clang and/or EMCC first?

No, that would only be needed is that were not already using the double dash version. I ran that emscripten test suite and confirmed it was not using the single dash version anywhere.

This revision was landed with ongoing or failed builds.May 26 2022, 2:43 PM
This revision was automatically updated to reflect the committed changes.