aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-05-10 17:48:49 -0700
committerPatrick Walton <[email protected]>2011-05-10 17:50:39 -0700
commit404db4d9a1ddaab38a54ff3df06a29f59179320c (patch)
tree167ef0294be97bc1a0f3aa97b8d6e8ef7b2de5dc
parentrustc: Make -g not take an argument (diff)
downloadrust-404db4d9a1ddaab38a54ff3df06a29f59179320c.tar.xz
rust-404db4d9a1ddaab38a54ff3df06a29f59179320c.zip
build: Add a DEBUG flag that turns on -g
-rw-r--r--Makefile.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index c32ac1e4..534293d0 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -27,6 +27,9 @@ endif
ifdef NO_TYPESTATE
CFG_RUSTC_FLAGS += --no-typestate
endif
+ifdef DEBUG
+ CFG_RUSTC_FLAGS += -g
+endif
# platform-specific auto-configuration
include $(CFG_SRC_DIR)/mk/platform.mk