[mac/arm] fix clang/test/Driver/darwin-ld-dedup.c
authorNico Weber <thakis@chromium.org>
Mon, 23 Nov 2020 18:29:36 +0000 (13:29 -0500)
committerNico Weber <thakis@chromium.org>
Mon, 23 Nov 2020 18:32:29 +0000 (13:32 -0500)
commit47eb5ce19ab10bcfe00af04e6a6e39613e2cb3c9
tree41d8fb94cfcfb212af0ad0e24a5d85097cb44dd7
parente65a5e5b00a37700a79e0a9f2fb1c1e60a2584bf
[mac/arm] fix clang/test/Driver/darwin-ld-dedup.c

The test needs an object file, which it currenty gets with
`-target x86_64-apple-darwin10`.  Rather than adding `REQUIRES: X86`, create
the object file via yaml2obj. This way, the test runs and passes even if the
host arch isn't x86 and only the host arch is built.

Part of PR46644.
clang/test/CMakeLists.txt
clang/test/Driver/Inputs/empty-x86_64-apple-darwin.yaml [new file with mode: 0644]
clang/test/Driver/darwin-ld-dedup.c
clang/test/lit.cfg.py
llvm/utils/gn/secondary/clang/test/BUILD.gn