From 1d190234862b3d9bf71206ba007606a653d80334 Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Thu, 6 Feb 2014 12:01:48 -0800 Subject: [PATCH] Build libstd etc. with debug info when Servo configured with --enable-debug --- Makefile.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index 77a743544bb..9b0189bb5ca 100644 --- a/Makefile.in +++ b/Makefile.in @@ -41,6 +41,7 @@ endif ifdef CFG_ENABLE_DEBUG $(info cfg: enabling more debugging (CFG_ENABLE_DEBUG)) CFG_RUSTC_FLAGS += -Z extra-debug-info + CFG_RUSTC_SELF_FLAGS += -Z extra-debug-info else # Enable debug!() etc even without configure --enable-debug # The evaluation of these prints & their arguments is controlled @@ -91,11 +92,11 @@ $(S)config.stamp : $(S)configure $(S)Makefile.in ifneq ($(CFG_LOCAL_RUSTC),1) $(CFG_RUSTC): $(B)src/compiler/rust/rust-auto-clean-stamp @$(call E, building rustc) - $(Q)CFG_RUSTC_FLAGS= CFG_ENABLE_DEBUG= RUSTFLAGS= $(MAKE) -C "$(CFG_BUILD_DIR)src/compiler/rust" + $(Q)CFG_RUSTC_FLAGS= CFG_ENABLE_DEBUG= RUSTFLAGS="$(CFG_RUSTC_SELF_FLAGS)" $(MAKE) -C "$(CFG_BUILD_DIR)src/compiler/rust" clean-rust: @$(call E, cleaning rustc) - $(Q)CFG_RUSTC_FLAGS= CFG_ENABLE_DEBUG= RUSTFLAGS= $(MAKE) -C "$(CFG_BUILD_DIR)src/compiler/rust" clean + $(Q)CFG_RUSTC_FLAGS= CFG_ENABLE_DEBUG= RUSTFLAGS="$(CFG_RUSTC_SELF_FLAGS)" $(MAKE) -C "$(CFG_BUILD_DIR)src/compiler/rust" clean else $(CFG_RUSTC):