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). This is a re-application ofc5ccb78adewhich had been reverted in33171df9ccbecause it broke the Fuchsia CI bots. The issue was that the test was XPASSing because it didn't fail anymore when the CLANG_DEFAULT_CXX_LIB was set to libc++, which seems to be done for Fuchsia. Instead, the test only fails if CLANG_DEFAULT_CXX_LIB is set to libstdc++. As a fly-by fix, also adjust the triple used by various tests to something that is supported. Those tests were shown to fail on internal bots. Differential Revision: https://reviews.llvm.org/D131274
34 lines
2.0 KiB
C
34 lines
2.0 KiB
C
// Basic binding.
|
|
// RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -no-integrated-as %s 2>&1 | FileCheck %s --check-prefix=CHECK01
|
|
// CHECK01: "clang", inputs: ["{{.*}}bindings.c"], output: "{{.*}}.s"
|
|
// CHECK01: "GNU::Assembler", inputs: ["{{.*}}.s"], output: "{{.*}}.o"
|
|
// CHECK01: "gcc::Linker", inputs: ["{{.*}}.o"], output: "a.out"
|
|
|
|
// Clang control options
|
|
|
|
// RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix=CHECK05
|
|
// CHECK05: "clang", inputs: ["{{.*}}bindings.c"], output: (nothing)
|
|
|
|
// RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -fsyntax-only -x c++ %s 2>&1 | FileCheck %s --check-prefix=CHECK08
|
|
// CHECK08: "clang", inputs: ["{{.*}}bindings.c"], output: (nothing)
|
|
|
|
// RUN: %clang -target i386-apple-darwin11 -ccc-print-bindings %s -S -arch ppc 2>&1 | FileCheck %s --check-prefix=CHECK11
|
|
// CHECK11: "clang", inputs: ["{{.*}}bindings.c"], output: "bindings.s"
|
|
|
|
// RUN: %clang -target powerpc-unknown-unknown -ccc-print-bindings %s -S 2>&1 | FileCheck %s --check-prefix=CHECK12
|
|
// CHECK12: "clang", inputs: ["{{.*}}bindings.c"], output: "bindings.s"
|
|
|
|
// Darwin bindings
|
|
// RUN: %clang -target i386-apple-darwin11 -no-integrated-as -ccc-print-bindings %s 2>&1 | FileCheck %s --check-prefix=CHECK14
|
|
// CHECK14: "clang", inputs: ["{{.*}}bindings.c"], output: "{{.*}}.s"
|
|
// CHECK14: "darwin::Assembler", inputs: ["{{.*}}.s"], output: "{{.*}}.o"
|
|
// CHECK14: "darwin::Linker", inputs: ["{{.*}}.o"], output: "a.out"
|
|
|
|
// GNU StaticLibTool binding
|
|
// RUN: %clang -target x86_64-linux-gnu -ccc-print-bindings --emit-static-lib %s 2>&1 | FileCheck %s --check-prefix=CHECK15
|
|
// CHECK15: "x86_64-unknown-linux-gnu" - "GNU::StaticLibTool", inputs: ["{{.*}}.o"], output: "a.out"
|
|
|
|
// Darwin StaticLibTool binding
|
|
// RUN: %clang -target i386-apple-darwin11 -ccc-print-bindings --emit-static-lib %s 2>&1 | FileCheck %s --check-prefix=CHECK16
|
|
// CHECK16: "i386-apple-darwin11" - "darwin::StaticLibTool", inputs: ["{{.*}}.o"], output: "a.out"
|