Newer SDKs don't even provide libstdc++ headers, so it's effectively never valid to build for libstdc++ unless the user explicitly asks for it (in which case they will need to provide include paths and more).
12 lines
874 B
C++
12 lines
874 B
C++
// This test will fail if CLANG_DEFAULT_CXX_STDLIB is set to anything different
|
|
// than the platform default. (see https://llvm.org/bugs/show_bug.cgi?id=30548)
|
|
// XFAIL: default-cxx-stdlib-set
|
|
|
|
// RUN: %clang -target x86_64-apple-darwin -ccc-install-dir %S/Inputs/darwin_toolchain_tree/bin/ -arch arm64 -miphoneos-version-min=7.0 %s -### 2>&1 | FileCheck %s
|
|
// RUN: %clang -target x86_64-apple-darwin -ccc-install-dir %S/Inputs/darwin_toolchain_tree/bin/ -mmacosx-version-min=10.9 %s -### 2>&1 | FileCheck %s
|
|
// RUN: %clang -target x86_64-apple-darwin -ccc-install-dir %S/Inputs/darwin_toolchain_tree/bin/ -arch armv7s -miphoneos-version-min=7.0 %s -### 2>&1 | FileCheck %s
|
|
// RUN: %clang -target x86_64-apple-darwin -ccc-install-dir %S/Inputs/darwin_toolchain_tree/bin/ -arch armv7k %s -### 2>&1 | FileCheck %s
|
|
|
|
// CHECK: "-stdlib=libc++"
|
|
// CHECK-NOT: "-stdlib=libstdc++"
|