diff options
author | Kelvin Li <kkwli0@gmail.com> | 2017-12-12 18:33:39 +0000 |
---|---|---|
committer | Kelvin Li <kkwli0@gmail.com> | 2017-12-12 18:33:39 +0000 |
commit | c7f86237939adefbfc16599d4b932ac352257958 (patch) | |
tree | 88db4d2eb175e52f5d721762e362c6e4ba57b779 /test/Driver | |
parent | 96484578625c26c20ca2c80a3ad85410bcb6c8cb (diff) |
Add --cuda-path to mock a CUDA Toolkit installation to avoid
unexpected error messages for incompatibility between the
default SM level and the support in the installed toolkit.
Differential Revision: https://reviews.llvm.org/D40996
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@320506 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver')
-rw-r--r-- | test/Driver/unknown-std.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Driver/unknown-std.cpp b/test/Driver/unknown-std.cpp index a7aae51122..2122a7468d 100644 --- a/test/Driver/unknown-std.cpp +++ b/test/Driver/unknown-std.cpp @@ -4,7 +4,7 @@ // RUN: not %clang %s -std=foobar -c 2>&1 | FileCheck --match-full-lines %s // RUN: not %clang -x objective-c++ %s -std=foobar -c 2>&1 | FileCheck --match-full-lines %s -// RUN: not %clang -x cuda -nocudainc -nocudalib %s -std=foobar -c 2>&1 | FileCheck --match-full-lines --check-prefix=CHECK --check-prefix=CUDA %s +// RUN: not %clang -x cuda -nocudainc -nocudalib --cuda-path=%S/Inputs/CUDA/usr/local/cuda %s -std=foobar -c 2>&1 | FileCheck --match-full-lines --check-prefix=CHECK --check-prefix=CUDA %s // CHECK: error: invalid value 'foobar' in '-std=foobar' // CHECK-NEXT: note: use 'c++98' or 'c++03' for 'ISO C++ 1998 with amendments' standard |