Actually disable optimize in --disable-optimize case, duh.

This commit is contained in:
Graydon Hoare 2011-04-08 16:29:19 -07:00
parent c0d0b717ee
commit 19ebc0f376
1 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,8 @@ CFG_GCC_CFLAGS := -fno-strict-aliasing
CFG_GCC_LINK_FLAGS :=
CFG_BOOT_FLAGS := $(BOOT_FLAGS)
ifdef CFG_DISABLE_OPTIMIZE
CFG_RUSTC_FLAGS := -O
$(info cfg: disabling rustc optimization (CFG_DISABLE_OPTIMIZE))
CFG_RUSTC_FLAGS := -nowarn
else
CFG_RUSTC_FLAGS := -nowarn -O
endif