[clang test] Do not assume default target
authorThomas Preud'homme <thomasp@graphcore.ai>
Tue, 26 Nov 2019 22:40:18 +0000 (22:40 +0000)
committerThomas Preud'homme <thomasp@graphcore.ai>
Mon, 2 Dec 2019 22:57:30 +0000 (22:57 +0000)
commit717140a0dcc651ca2fec23248d1675fb2d388b9c
treeeaf41a5e62b534ebccce73f5996bfe9f676491b2
parent711c669ae92658aecc6fabccc583594924bac6d7
[clang test] Do not assume default target

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.

Reviewers: thegameg

Reviewed By: thegameg

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D70748
clang/test/Driver/darwin-opt-record.c