From: Jonas Hahnfeld Date: Mon, 24 Oct 2016 08:04:17 +0000 (+0000) Subject: Fix myriad test with CLANG_DEFAULT_CXX_STDLIB X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0af10b2b079e0e626fe7061635aa6bc06567e84;p=clang Fix myriad test with CLANG_DEFAULT_CXX_STDLIB git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284958 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/myriad-toolchain.c b/test/Driver/myriad-toolchain.c index e7de6a8fe5..1d5429bf35 100644 --- a/test/Driver/myriad-toolchain.c +++ b/test/Driver/myriad-toolchain.c @@ -9,7 +9,7 @@ // LINK_WITH_RTEMS: Inputs{{.*}}crtn.o // RUN: %clang -c -no-canonical-prefixes -### -target sparc-myriad-rtems-elf -x c++ %s \ -// RUN: --gcc-toolchain=%S/Inputs/basic_myriad_tree 2>&1 | FileCheck %s -check-prefix=COMPILE_CXX +// RUN: -stdlib=libstdc++ --gcc-toolchain=%S/Inputs/basic_myriad_tree 2>&1 | FileCheck %s -check-prefix=COMPILE_CXX // COMPILE_CXX: "-internal-isystem" "{{.*}}/Inputs/basic_myriad_tree/lib/gcc/sparc-myriad-elf/4.8.2/../../../../sparc-myriad-elf/include/c++/4.8.2" // COMPILE_CXX: "-internal-isystem" "{{.*}}/Inputs/basic_myriad_tree/lib/gcc/sparc-myriad-elf/4.8.2/../../../../sparc-myriad-elf/include/c++/4.8.2/sparc-myriad-elf" // COMPILE_CXX: "-internal-isystem" "{{.*}}/Inputs/basic_myriad_tree/lib/gcc/sparc-myriad-elf/4.8.2/../../../../sparc-myriad-elf/include/c++/4.8.2/backward" @@ -69,7 +69,7 @@ // RUN: | FileCheck %s -check-prefix=PREPROCESS // PREPROCESS: "-E" "-DMYRIAD2" "-I" "foo" -// RUN: %clang -target sparc-myriad -### --driver-mode=g++ %s 2>&1 | FileCheck %s --check-prefix=LIBSTDCXX +// RUN: %clang -stdlib=platform -target sparc-myriad -### --driver-mode=g++ %s 2>&1 | FileCheck %s --check-prefix=LIBSTDCXX // LIBSTDCXX: "-lstdc++" "-lc" "-lgcc" // RUN: %clang -stdlib=libc++ -### -target sparcel-myriad -S -x c++ %s 2>&1 | FileCheck %s -check-prefix=LIBCXX