This is an archive of the discontinued LLVM Phabricator instance.

[LLD] [MinGW] Simplify handling of os/subsystem version
ClosedPublic

Authored by mstorsjo on Oct 4 2020, 1:04 PM.

Details

Summary

As they can be set independently after D88802, we can get rid of a bit of extra code - simplifying the logic here before adding more complication to it later.

Diff Detail

Event Timeline

mstorsjo created this revision.Oct 4 2020, 1:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 4 2020, 1:04 PM
mstorsjo requested review of this revision.Oct 4 2020, 1:04 PM
mati865 accepted this revision.Oct 5 2020, 4:01 AM

Nit: according to https://docs.microsoft.com/en-us/cpp/build/reference/subsystem-specify-subsystem?view=vs-2019 the minimal and the default subsystem for ARM should be 6.02.

The diff itself LGTM.

This revision is now accepted and ready to land.Oct 5 2020, 4:01 AM

Nit: according to https://docs.microsoft.com/en-us/cpp/build/reference/subsystem-specify-subsystem?view=vs-2019 the minimal and the default subsystem for ARM should be 6.02.

Thanks for pointing that out - apparently this isn't something that has been enforced or that has caused issues so far though.

This revision was landed with ongoing or failed builds.Oct 5 2020, 1:08 PM
This revision was automatically updated to reflect the committed changes.