This is an archive of the discontinued LLVM Phabricator instance.

[clang, test, Darwin] Fix tests expecting Darwin target
ClosedPublic

Authored by thopre on Aug 5 2020, 3:16 PM.

Details

Summary

Clang tests Driver/apple-arm64-arch.c and
Driver/darwin-warning-options.c test Darwin driver functionality but
only require the host system to be Darwin. This leads the tests to fail
when building a cross-compiler on Darwin and to be marked unsupported
when cross-compiling to Darwin from another system. This commit changes
the requirements for those tests to require the target to be Darwin.

Diff Detail

Event Timeline

thopre created this revision.Aug 5 2020, 3:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 5 2020, 3:16 PM
thopre requested review of this revision.Aug 5 2020, 3:16 PM
This revision is now accepted and ready to land.Aug 6 2020, 1:19 PM
This revision was automatically updated to reflect the committed changes.