aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-04-08 15:44:41 -0700
committerGraydon Hoare <[email protected]>2011-04-08 15:49:14 -0700
commitcae703c0b1fabbc6ed3f6501198778d18a110fc2 (patch)
tree90c8e1643888c3376302ddaa476735d9f84059d5 /Makefile.in
parentrustc: Resolve ty_locals (diff)
downloadrust-cae703c0b1fabbc6ed3f6501198778d18a110fc2.tar.xz
rust-cae703c0b1fabbc6ed3f6501198778d18a110fc2.zip
Add support for --disable-optimize
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index ad7cf7a6..655dfa0e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -14,7 +14,11 @@ CFG_INFO := $(info cfg: building on $(CFG_OSTYPE) $(CFG_CPUTYPE))
CFG_GCC_CFLAGS := -fno-strict-aliasing
CFG_GCC_LINK_FLAGS :=
CFG_BOOT_FLAGS := $(BOOT_FLAGS)
-CFG_RUSTC_FLAGS := -nowarn -O
+ifdef CFG_DISABLE_OPTIMIZE
+ CFG_RUSTC_FLAGS := -O
+else
+ CFG_RUSTC_FLAGS := -nowarn -O
+endif
# On Darwin, we need to run dsymutil so the debugging information ends
# up in the right place. On other platforms, it automatically gets