aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2020-08-22 20:22:37 +0200
committerGravatar Yann E. MORIN <yann.morin.1998@free.fr>2020-08-24 11:02:08 +0200
commitd67ff44850fdb7f5159d2b6c3310e7501231a24f (patch)
tree10be0cf3492d8e5352f4415657e56c2037677f90
parent5714f3f81fdd85640d627f9b43490c52419650ea (diff)
downloadbuildroot-d67ff44850fdb7f5159d2b6c3310e7501231a24f.tar.gz
buildroot-d67ff44850fdb7f5159d2b6c3310e7501231a24f.tar.bz2
package/ripgrep: fix debug build
There is no --debug mode for cargo resulting in the following build failure since the addition of this package with commit 4b0d1ef6ac00c5170a3fb9d15d06b3d3172e0c97: error: Unknown flag: '--debug' Fixes: - http://autobuild.buildroot.org/results/58e74bb056ec65680ecebaa559aa14bdebbf5c85 - http://autobuild.buildroot.org/results/28c6364a89a6044d5a036614f7a6e59815efb770 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> [yann.morin.1998@free.fr: keep the default 'dev' mode when in debug] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
-rw-r--r--package/ripgrep/ripgrep.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/package/ripgrep/ripgrep.mk b/package/ripgrep/ripgrep.mk
index 832c076f26..5f58630ffe 100644
--- a/package/ripgrep/ripgrep.mk
+++ b/package/ripgrep/ripgrep.mk
@@ -11,12 +11,11 @@ RIPGREP_LICENSE_FILES = LICENSE-MIT
RIPGREP_DEPENDENCIES = host-rustc
RIPGREP_CARGO_ENV = CARGO_HOME=$(HOST_DIR)/share/cargo
-RIPGREP_CARGO_MODE = $(if $(BR2_ENABLE_DEBUG),debug,release)
RIPGREP_BIN_DIR = target/$(RUSTC_TARGET_NAME)/$(RIPGREP_CARGO_MODE)
RIPGREP_CARGO_OPTS = \
- --$(RIPGREP_CARGO_MODE) \
+ $(if $(BR2_ENABLE_DEBUG),,--release) \
--target=$(RUSTC_TARGET_NAME) \
--manifest-path=$(@D)/Cargo.toml