[clang-cl] Fix test that shouldn't be running on non-x86
authorRenato Golin <renato.golin@linaro.org>
Thu, 20 Oct 2016 17:41:08 +0000 (17:41 +0000)
committerRenato Golin <renato.golin@linaro.org>
Thu, 20 Oct 2016 17:41:08 +0000 (17:41 +0000)
commitf46be19104f268602e0329cb03afad7f8df63d2f
tree130042e22303330be90723764f16d33691fbf387
parent1388c0acc1f4dfc3e37e255ebc614c810110caac
[clang-cl] Fix test that shouldn't be running on non-x86

The clang-cl test required x86-registered-target but it defaulted to the
host's triple and AArch64 still doesn't support COFF, so the test failed.

The triple was "aarch64-pc-windows-msvc18.0.0" with ObjectFormat equals
llvm::Triple::COFF, failing assertion:

Assertion `(TT.isOSBinFormatELF() || TT.isOSBinFormatMachO()) &&
          "Only expect Darwin and ELF targets"

in AArch64MCTargetDesc.cpp:78.

Making the test only run on Windows hosts obviously fixes the problem.

llvm-svn: 284749
clang/test/Driver/cl-pch.c