This is an archive of the discontinued LLVM Phabricator instance.

[LLD][MinGW] Add --fatal-warnings and --no-fatal-warnings flags
ClosedPublic

Authored by mati865 on May 14 2021, 10:49 AM.

Details

Summary

Couldn't find the pattern for ordering flags in Driver.cpp so put it in a random position.

Diff Detail

Event Timeline

mati865 created this revision.May 14 2021, 10:49 AM
mati865 requested review of this revision.May 14 2021, 10:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 14 2021, 10:49 AM

Couldn't find the pattern for ordering flags in Driver.cpp so put it in a random position.

Yeah there's probably no very clear pattern, so far it's mostly grouped according to options that have similar code for handling them.

lld/MinGW/Options.td
49

Typo, erros.

lld/test/MinGW/driver.test
298

This line doesn't seem to match the default indicated both in Options.td and the code (and the CI also seems to conclude that this fails).

mati865 updated this revision to Diff 345583.May 14 2021, 4:21 PM

Fix typo and the test

mati865 marked an inline comment as done.May 14 2021, 4:22 PM
mati865 added inline comments.
lld/test/MinGW/driver.test
298

I have no idea how that happened, I must have ran tests before saving the file.

This revision is now accepted and ready to land.May 17 2021, 12:47 AM
This revision was automatically updated to reflect the committed changes.