all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob b72402a9a77baec65bb24911b1df62410354568c 1303 bytes (raw)
name: gnu/packages/patches/rust-1.49-llvm-cov-no-debug.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 
cherry-picked from commit fe56d267cae, in master as of 1.50
diff --git a/src/test/run-make-fulldeps/coverage-reports-base/Makefile b/src/test/run-make-fulldeps/coverage-reports-base/Makefile
index b175768e199..1e2aa056e40 100644
--- a/src/test/run-make-fulldeps/coverage-reports-base/Makefile
+++ b/src/test/run-make-fulldeps/coverage-reports-base/Makefile
@@ -13,15 +13,13 @@
 BASEDIR=../coverage-reports-base
 SOURCEDIR=../coverage
 
-ifeq ($(UNAME),Darwin)
-# FIXME(richkadel): It appears that --debug is not available on MacOS even when not running
-# under CI.
-NO_LLVM_ASSERTIONS=1
-endif
-
 # The `llvm-cov show` flag `--debug`, used to generate the `counters` output files, is only enabled
-# if LLVM assertions are enabled. Some CI builds disable debug assertions.
-ifndef NO_LLVM_ASSERTIONS
+# if LLVM assertions are enabled. Requires Rust config `llvm/optimize` and not
+# `llvm/release_debuginfo`. Note that some CI builds disable debug assertions (by setting
+# `NO_LLVM_ASSERTIONS=1`), so it is not OK to fail the test, but `bless`ed test results cannot be
+# generated without debug assertions.
+LLVM_COV_DEBUG := $(shell "$(LLVM_BIN_DIR)"/llvm-cov show --debug 2>&1 | grep -q "Unknown command line argument '--debug'"; echo $$?)
+ifeq ($(LLVM_COV_DEBUG), 1)
 DEBUG_FLAG=--debug
 endif
 

debug log:

solving b72402a9a7 ...
found b72402a9a7 in https://yhetil.org/guix/20210519183749.32709-1-milkeymouse@meme.institute/

applying [1/1] https://yhetil.org/guix/20210519183749.32709-1-milkeymouse@meme.institute/
diff --git a/gnu/packages/patches/rust-1.49-llvm-cov-no-debug.patch b/gnu/packages/patches/rust-1.49-llvm-cov-no-debug.patch
new file mode 100644
index 0000000000..b72402a9a7

1:15: trailing whitespace.
 
1:33: trailing whitespace.
 
Checking patch gnu/packages/patches/rust-1.49-llvm-cov-no-debug.patch...
1:33: new blank line at EOF.
+
Applied patch gnu/packages/patches/rust-1.49-llvm-cov-no-debug.patch cleanly.
warning: 3 lines add whitespace errors.

index at:
100644 b72402a9a77baec65bb24911b1df62410354568c	gnu/packages/patches/rust-1.49-llvm-cov-no-debug.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.