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 | af7c0ef43577d5b84574437409a61efeb7b92a4e (patch) | |
tree | 8e2bb475c3759a9abb40bba180cb454b564c5f26 /clang/test/Driver/unknown-std.cpp | |
parent | 674d053d18c1c352e2950b5313a0980664381c04 (diff) | |
download | bcm5719-llvm-af7c0ef43577d5b84574437409a61efeb7b92a4e.tar.gz bcm5719-llvm-af7c0ef43577d5b84574437409a61efeb7b92a4e.zip |
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
llvm-svn: 320506
Diffstat (limited to 'clang/test/Driver/unknown-std.cpp')
-rw-r--r-- | clang/test/Driver/unknown-std.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Driver/unknown-std.cpp b/clang/test/Driver/unknown-std.cpp index a7aae511222..2122a7468d0 100644 --- a/clang/test/Driver/unknown-std.cpp +++ b/clang/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 |