]> granicus.if.org Git - clang/commitdiff
Add empty --gcc-toolchain empty to cuda-detect test.
authorSamuel Antao <sfantao@us.ibm.com>
Tue, 16 Aug 2016 14:31:39 +0000 (14:31 +0000)
committerSamuel Antao <sfantao@us.ibm.com>
Tue, 16 Aug 2016 14:31:39 +0000 (14:31 +0000)
Unless we overload the default gcc toolchain with an empty string
the system root used in the tests will be ignored if the user builds
clang  with a custom gcc toolchain.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@278806 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/cuda-detect.cu

index c4c177287a872caab1a2dd41380795b50ad1d32d..7bbda1b4a73a9605030366ef0c5e0a55f1bc4a71 100644 (file)
@@ -75,6 +75,7 @@
 // Verify that C++ include paths are passed for both host and device frontends.
 // RUN: %clang -### -no-canonical-prefixes -target x86_64-linux-gnu %s \
 // RUN: --stdlib=libstdc++ --sysroot=%S/Inputs/ubuntu_14.04_multiarch_tree2 2>&1 \
+// RUN: --gcc-toolchain="" \
 // RUN: | FileCheck %s --check-prefix CHECK-CXXINCLUDE
 
 // CHECK: Found CUDA installation: {{.*}}/Inputs/CUDA/usr/local/cuda