From cae703c0b1fabbc6ed3f6501198778d18a110fc2 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Fri, 8 Apr 2011 15:44:41 -0700 Subject: Add support for --disable-optimize --- Makefile.in | 6 +++++- configure | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) 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 diff --git a/configure b/configure index 8c8ed680..2f3a9d43 100755 --- a/configure +++ b/configure @@ -153,6 +153,7 @@ fi opt valgrind 1 "run tests with valgrind" opt docs 1 "build documentation" +opt optimize 1 "build optimized rust code" if [ $HELP -eq 1 ] -- cgit v1.2.3