Add support for --disable-optimize

This commit is contained in:
Graydon Hoare 2011-04-08 15:44:41 -07:00
parent 573bc5ad01
commit cae703c0b1
2 changed files with 6 additions and 1 deletions

View File

@ -14,7 +14,11 @@ CFG_INFO := $(info cfg: building on $(CFG_OSTYPE) $(CFG_CPUTYPE))
CFG_GCC_CFLAGS := -fno-strict-aliasing CFG_GCC_CFLAGS := -fno-strict-aliasing
CFG_GCC_LINK_FLAGS := CFG_GCC_LINK_FLAGS :=
CFG_BOOT_FLAGS := $(BOOT_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 # On Darwin, we need to run dsymutil so the debugging information ends
# up in the right place. On other platforms, it automatically gets # up in the right place. On other platforms, it automatically gets

1
configure vendored
View File

@ -153,6 +153,7 @@ fi
opt valgrind 1 "run tests with valgrind" opt valgrind 1 "run tests with valgrind"
opt docs 1 "build documentation" opt docs 1 "build documentation"
opt optimize 1 "build optimized rust code"
if [ $HELP -eq 1 ] if [ $HELP -eq 1 ]