From: Jonas Hahnfeld Date: Fri, 12 Aug 2016 10:36:04 +0000 (+0000) Subject: Fix cuda-detect.cu when CLANG_DEFAULT_CXX_STDLIB is set X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d0be3c0b6c052caa213a8d04bcec32d74f19f43b;p=clang Fix cuda-detect.cu when CLANG_DEFAULT_CXX_STDLIB is set Reported by Ismail Donmez! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@278497 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/cuda-detect.cu b/test/Driver/cuda-detect.cu index f14e7b2991..4994fd6979 100644 --- a/test/Driver/cuda-detect.cu +++ b/test/Driver/cuda-detect.cu @@ -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