This is an archive of the discontinued LLVM Phabricator instance.

[Flang][Test] Add support to change the default target triple for tests
ClosedPublic

Authored by mnadeem on Nov 22 2022, 4:16 PM.

Details

Summary

In this patch I added support to change the default target triple used by flang tests using the cmake variable: -DFLANG_TEST_TARGET_TRIPLE="xxx".

The motivation for this is that we build our full toolchain for multiple targets e.g. aarch64, arm32 etc but we set arm32 as the default triple and we want to enable flang build in our CI. Since arm32 has no flang support, a bunch of tests are failing. To enable flang in our CI, changing the flang test triple using -DFLANG_TEST_TARGET_TRIPLE="aarch64-linux-gnu" works in the interim.

Please let me know if something like this has any value to the community.

Diff Detail

Event Timeline

mnadeem created this revision.Nov 22 2022, 4:16 PM
Herald added a project: Restricted Project. · View Herald Transcript
mnadeem requested review of this revision.Nov 22 2022, 4:16 PM
DavidTruby accepted this revision.EditedNov 24 2022, 6:20 AM
DavidTruby added a subscriber: DavidTruby.

LGTM, if this supports getting more flang build bots up then I do think it has value
Thanks!

This revision is now accepted and ready to land.Nov 24 2022, 6:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 28 2022, 4:03 PM