diff options
author | Diana Picus <diana.picus@linaro.org> | 2016-08-02 13:53:00 +0000 |
---|---|---|
committer | Diana Picus <diana.picus@linaro.org> | 2016-08-02 13:53:00 +0000 |
commit | dfaea96575977c6b9124315801d40634bc10d753 (patch) | |
tree | c65f0fd13c3d7b9f4050d388f93c0acba62cf375 /test/Driver/cl-pch-search.cpp | |
parent | 34b6437ab993036f2bf8dd6ae4335c17a25ee0d7 (diff) | |
download | clang-dfaea96575977c6b9124315801d40634bc10d753.tar.gz |
[clang-cl] Fix PCH tests to use x86_64 as target
These tests require x86-registered-target, but they don't force the target as
x86 on the command line, which means they will be run and they might fail when
building the x86 backend on another platform (such as AArch64).
Fixes https://llvm.org/bugs/show_bug.cgi?id=28797
Differential Revision: https://reviews.llvm.org/D23054
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@277457 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/cl-pch-search.cpp')
-rw-r--r-- | test/Driver/cl-pch-search.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Driver/cl-pch-search.cpp b/test/Driver/cl-pch-search.cpp index 118cf19efb..ca62668ef1 100644 --- a/test/Driver/cl-pch-search.cpp +++ b/test/Driver/cl-pch-search.cpp @@ -3,4 +3,4 @@ // REQUIRES: x86-registered-target // Check that pchfile.h next to to pchfile.cc is found correctly. -// RUN: %clang_cl -Werror /Ycpchfile.h /FIpchfile.h /c /Fo%t.obj /Fp%t.pch -- %S/Inputs/pchfile.cpp +// RUN: %clang_cl -Werror --target=x86_64 /Ycpchfile.h /FIpchfile.h /c /Fo%t.obj /Fp%t.pch -- %S/Inputs/pchfile.cpp |