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).
21 lines
820 B
LLVM
21 lines
820 B
LLVM
; REQUIRES: x86-registered-target
|
|
; RUN: opt -module-summary %s -o %t.o
|
|
|
|
; Ensure dead stripping performed flag is set on distributed index
|
|
; RUN: llvm-lto2 run %t.o -o %t.out -thinlto-distributed-indexes \
|
|
; RUN: -r %t.o,glob,plx
|
|
; RUN: llvm-bcanalyzer -dump %t.o.thinlto.bc | FileCheck %s --check-prefix=WITHDEAD
|
|
; WITHDEAD: <FLAGS op0=97/>
|
|
|
|
; Ensure dead stripping performed flag is not set on distributed index
|
|
; when option used to disable dead stripping computation.
|
|
; RUN: llvm-lto2 run %t.o -o %t.out -thinlto-distributed-indexes \
|
|
; RUN: -r %t.o,glob,plx -compute-dead=false
|
|
; RUN: llvm-bcanalyzer -dump %t.o.thinlto.bc | FileCheck %s --check-prefix=NODEAD
|
|
; NODEAD: <FLAGS op0=96/>
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
@glob = global i32 0
|