This is an archive of the discontinued LLVM Phabricator instance.

[clang test] Do not assume default target
ClosedPublic

Authored by thopre on Nov 26 2019, 3:10 PM.

Details

Summary

clang test Driver/darwin-opt-record.c assumes the default target is
x86_64 by its uses of the -arch x86_64 and -arch x86_64h and thus fail
on systems where it is not the case. Adding a target
x86_64-apple-darwin10 reveals another problem: the driver refuses 2
-arch for an assembly output so this commit also changes the output to
be an object file.

Event Timeline

thopre created this revision.Nov 26 2019, 3:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 26 2019, 3:10 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
thegameg accepted this revision.Dec 2 2019, 8:40 AM

LGTM, thanks for fixing this.

This revision is now accepted and ready to land.Dec 2 2019, 8:40 AM