[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/38: build/cargo.scm: Remove '--release' from default cargo-test-flags
From: |
guix-commits |
Subject: |
03/38: build/cargo.scm: Remove '--release' from default cargo-test-flags. |
Date: |
Thu, 19 Dec 2024 06:02:35 -0500 (EST) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 19f446c5df07befbde3e7c299ea8c5a853bb0b54
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Dec 19 10:46:18 2024 +0900
build/cargo.scm: Remove '--release' from default cargo-test-flags.
The default behavior for 'cargo test' is to build in debug mode, and many
test
suites expect support for things provided in this mode such as debug
assertions (see for example:
<https://github.com/google/zerocopy/issues/2143>).
* guix/build-system/cargo.scm (cargo-build): Remove '--release' from
#:cargo-test-flags.
* guix/build/cargo-build-system.scm (check): Likewise.
Change-Id: I8a659c25bd33bc1bdfd88e440bd00bad09a5fc01
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
guix/build-system/cargo.scm | 4 ++--
guix/build/cargo-build-system.scm | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/guix/build-system/cargo.scm b/guix/build-system/cargo.scm
index 9850969156..452f7f78d0 100644
--- a/guix/build-system/cargo.scm
+++ b/guix/build-system/cargo.scm
@@ -93,7 +93,7 @@ to NAME and VERSION."
(test-target #f)
(vendor-dir "guix-vendor")
(cargo-build-flags ''("--release"))
- (cargo-test-flags ''("--release"))
+ (cargo-test-flags ''())
(cargo-package-flags ''("--no-metadata" "--no-verify"))
(features ''())
(skip-build? #f)
@@ -153,7 +153,7 @@ to NAME and VERSION."
(test-target #f)
(vendor-dir "guix-vendor")
(cargo-build-flags ''("--release"))
- (cargo-test-flags ''("--release"))
+ (cargo-test-flags ''())
(cargo-package-flags ''("--no-metadata"
"--no-verify"))
(cargo-target (cargo-triplet (or target system)))
(features ''())
diff --git a/guix/build/cargo-build-system.scm
b/guix/build/cargo-build-system.scm
index 453d759470..480134402f 100644
--- a/guix/build/cargo-build-system.scm
+++ b/guix/build/cargo-build-system.scm
@@ -252,7 +252,7 @@ directory = '" vendor-dir "'") port)
parallel-build?
parallel-tests?
tests?
- (cargo-test-flags '("--release"))
+ (cargo-test-flags '())
#:allow-other-keys)
"Run tests for a given Cargo package."
(when tests?
- branch rust-team updated (e59be526ae -> 63a73cf720), guix-commits, 2024/12/19
- 03/38: build/cargo.scm: Remove '--release' from default cargo-test-flags.,
guix-commits <=
- 04/38: gnu: rust-zerocopy-0.8: Remove cargo-test-flags., guix-commits, 2024/12/19
- 07/38: gnu: nsncd: Don't run the tests in release mode., guix-commits, 2024/12/19
- 15/38: gnu: tree-sitter-cli: Don't run the tests in release mode., guix-commits, 2024/12/19
- 20/38: gnu: sequoia-sq: Don't run the tests in release mode., guix-commits, 2024/12/19
- 06/38: gnu: du-dust: Remove cargo-test-flags., guix-commits, 2024/12/19
- 18/38: gnu: rust-sequoia-openpgp-1: Don't run the tests in release mode., guix-commits, 2024/12/19
- 16/38: gnu: rust-nu-protocol-0.91: Don't run the tests in release mode., guix-commits, 2024/12/19
- 17/38: gnu: nushell: Don't run the tests in release mode., guix-commits, 2024/12/19
- 21/38: gnu: cargo-machete: Don't run the tests in release mode., guix-commits, 2024/12/19
- 01/38: gnu: x265: Only build with nasm on x86_64-linux., guix-commits, 2024/12/19