]> granicus.if.org Git - clang/commitdiff
Fix cuda-detect.cu when CLANG_DEFAULT_CXX_STDLIB is set
authorJonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
Fri, 12 Aug 2016 10:36:04 +0000 (10:36 +0000)
committerJonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
Fri, 12 Aug 2016 10:36:04 +0000 (10:36 +0000)
Reported by Ismail Donmez!

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

test/Driver/cuda-detect.cu

index f14e7b299144fe902c29cf533fc3ca8a20abd19c..4994fd69791dd4ae584b167bf68246925b4594f5 100644 (file)
@@ -74,7 +74,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: --sysroot=%S/Inputs/ubuntu_14.04_multiarch_tree2 2>&1 \
+// RUN: --stdlib=libstdc++ --sysroot=%S/Inputs/ubuntu_14.04_multiarch_tree2 2>&1 \
 // RUN: | FileCheck %s --check-prefix CHECK-CXXINCLUDE
 
 // CHECK: Found CUDA installation: {{.*}}/Inputs/CUDA/usr/local/cuda