mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 03:36:06 +00:00

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 of c5ccb78ade81 which had been reverted in 33171df9cc7f because 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
19 lines
715 B
C
19 lines
715 B
C
// RUN: env RC_DEBUG_OPTIONS=1 %clang -target i386-apple-darwin11 -I "path with \spaces" -g -Os %s -emit-llvm -S -o - | FileCheck %s
|
|
// <rdar://problem/7256886>
|
|
// RUN: touch %t.s
|
|
// RUN: env RC_DEBUG_OPTIONS=1 %clang -### -target i386-apple-darwin11 -c -g %t.s 2>&1 | FileCheck -check-prefix=S %s
|
|
// <rdar://problem/12955296>
|
|
// RUN: %clang -### -target i386-apple-darwin11 -c -g %t.s 2>&1 | FileCheck -check-prefix=P %s
|
|
|
|
// CHECK: distinct !DICompileUnit(
|
|
// CHECK-SAME: flags:
|
|
// CHECK-SAME: -I path\\ with\\ \\\\spaces
|
|
// CHECK-SAME: -g -Os
|
|
// CHECK-SAME: -mmacos-version-min=10.7.0
|
|
|
|
int x;
|
|
|
|
// S: "-dwarf-debug-flags"
|
|
|
|
// P: "-dwarf-debug-producer"
|