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).
25 lines
1.1 KiB
LLVM
25 lines
1.1 KiB
LLVM
; REQUIRES: x86
|
|
|
|
;; Check that changing the output path via thinlto-prefix-replace works
|
|
; RUN: mkdir -p %t/oldpath
|
|
; RUN: opt -module-summary %s -o %t/oldpath/thinlto_prefix_replace.o
|
|
|
|
;; Ensure that there is no existing file at the new path, so we properly
|
|
;; test the creation of the new file there.
|
|
; RUN: rm -f %t/newpath/thinlto_prefix_replace.o.thinlto.bc
|
|
; RUN: %lld --thinlto-index-only --thinlto-prefix-replace="%t/oldpath/;%t/newpath/" -dylib %t/oldpath/thinlto_prefix_replace.o -o %t/thinlto_prefix_replace
|
|
; RUN: ls %t/newpath/thinlto_prefix_replace.o.thinlto.bc
|
|
|
|
;; Ensure that lld generates error if prefix replace option does not have 'old;new' format.
|
|
; RUN: rm -f %t/newpath/thinlto_prefix_replace.o.thinlto.bc
|
|
; RUN: not %lld --thinlto-index-only --thinlto-prefix-replace=abc:def -dylib %t/oldpath/thinlto_prefix_replace.o -o /dev/null 2>&1 | FileCheck %s --check-prefix=ERR
|
|
; ERR: --thinlto-prefix-replace= expects 'old;new' format, but got abc:def
|
|
|
|
target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-apple-darwin"
|
|
|
|
define void @f() {
|
|
entry:
|
|
ret void
|
|
}
|