This is an archive of the discontinued LLVM Phabricator instance.

[clang] Remove `-triple` from the invocations of `flang-new -fc1`
ClosedPublic

Authored by awarzynski on Dec 10 2020, 5:01 AM.

Details

Summary

This is just a small change in the Flang tool within libclangDriver.
Currently it passes -triple when calling flang-new -fc1 for various
driver Jobs. Eventually these Jobs will require a triple, but currently
Flang doesn't support code-generation. As a consequence, `flang-new
-fc1` doesn't support -triple.

This hasn't been a problem as the affected Jobs aren't implemented or
used. However, we will be adding support for them in the near future.
However, while there is no code-generation, -triple is not required
and should remain unsupported.

Diff Detail

Event Timeline

awarzynski created this revision.Dec 10 2020, 5:01 AM
awarzynski requested review of this revision.Dec 10 2020, 5:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 10 2020, 5:01 AM
sameeranjoshi accepted this revision.Dec 10 2020, 6:51 AM

Thanks for extracting it from D92854.
I think the tests in D92854 were failing for the same reason.
LGTM.

This revision is now accepted and ready to land.Dec 10 2020, 6:51 AM

Thanks for extracting it from D92854.
I think the tests in D92854 were failing for the same reason.
LGTM.

Thanks for reviewing so quickly! I still haven't submitted my comments on D92854, which indeed re-direct to this patch :)

This revision was landed with ongoing or failed builds.Dec 10 2020, 9:55 AM
This revision was automatically updated to reflect the committed changes.