cb424d7448
verify-patch-sanity.py validates every active recipe .patch has internally- consistent hunk line counts — catching the 'malformed patch at line N' failure at commit/CI/preflight time instead of hours into a cook. This cycle hit that class three times (qtwaylandscanner, sddm, xwayland), each only discovered when cookbook tried to apply the patch. Running it across the repo found 29 latent malformed patches (validated against GNU patch: e.g. relibc/P3-sysv-ipc reproduces 'malformed patch at line 22'). They were harmless only because they sit in vendored recipes (baked, not re- applied) — but would fail on any version-bump re-derivation. --fix recounts the hunk headers (body untouched) and repaired all 29. Wired into build-preflight.sh (Phase 1.0D) and redbear-ci.yml, with a unit test (test-patch-sanity.sh). Skips archived/legacy trees and unvalidatable formats (empty placeholders, bare-@@ git hunks).
24 lines
1.6 KiB
C++
24 lines
1.6 KiB
C++
// On some platforms, -stdlib=libc++ is currently ignored, so -lc++experimental is not added.
|
|
// Once -stdlib=libc++ works on those, this XFAIL can be removed.
|
|
// XFAIL: target={{.*-windows-msvc.*}}, target={{.*-(ps4|ps5)}}
|
|
|
|
// For some reason, this fails with a core dump on AIX. This needs to be investigated.
|
|
// UNSUPPORTED: target={{.*}}-aix{{.*}}
|
|
|
|
// RUN: %clangxx -fexperimental-library -stdlib=libc++ -### %s 2>&1 | FileCheck --check-prefixes=CHECK,CHECK-LIBCXX %s
|
|
// RUN: %clangxx -fexperimental-library -stdlib=libstdc++ -### %s 2>&1 | FileCheck --check-prefixes=CHECK,CHECK-LIBSTDCXX %s
|
|
// RUN: %clangxx -fexperimental-library -stdlib=libc++ -nostdlib++ -### %s 2>&1 | FileCheck --check-prefixes=CHECK,CHECK-NOSTDLIB %s
|
|
|
|
/// The FreeBSD driver did not support -stdlib=libstdc++ previously, check that it does the right thing here.
|
|
// RUN: %clangxx --target=x86_64-unknown-freebsd -fexperimental-library -stdlib=libc++ -### %s 2>&1 | FileCheck --check-prefixes=CHECK,CHECK-LIBCXX %s
|
|
// RUN: %clangxx --target=x86_64-unknown-freebsd -fexperimental-library -stdlib=libstdc++ -### %s 2>&1 | FileCheck --check-prefixes=CHECK,CHECK-LIBSTDCXX %s
|
|
// RUN: %clangxx --target=x86_64-unknown-freebsd -fexperimental-library -stdlib=libc++ -nostdlib++ -### %s 2>&1 | FileCheck --check-prefixes=CHECK,CHECK-NOSTDLIB %s
|
|
|
|
// -fexperimental-library must be passed to CC1.
|
|
// CHECK: -fexperimental-library
|
|
|
|
// Depending on the stdlib in use, we should (or not) pass -lc++experimental.
|
|
// CHECK-LIBCXX: -lc++experimental
|
|
// CHECK-LIBSTDCXX-NOT: -lc++experimental
|
|
// CHECK-NOSTDLIB-NOT: -lc++experimental
|