From 4abbbdecc4e7caf0cb23a803667bb19cd08c53c3 Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Mon, 19 Aug 2013 11:20:28 -0700 Subject: [PATCH] Pass --cfg debug to rustc --- Makefile.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index e64ac6a1f8e..bb7a5d4e0a1 100644 --- a/Makefile.in +++ b/Makefile.in @@ -29,7 +29,10 @@ B := $(CFG_BUILD_DIR) MKFILE_DEPS := config.stamp $(call rwildcard,$(S)mk/,*) -CFG_RUSTC_FLAGS := $(RUSTFLAGS) +# Enable debug!() etc even without configure --enable-debug +# The evaluation of these prints & their arguments is controlled +# at runtime by the environment variable RUST_LOG. +CFG_RUSTC_FLAGS := $(RUSTFLAGS) --cfg debug ifdef CFG_DISABLE_OPTIMIZE $(info cfg: disabling rustc optimization (CFG_DISABLE_OPTIMIZE))