Skip to content

Commit cae703c

Browse files
committed
Add support for --disable-optimize
1 parent 573bc5a commit cae703c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Makefile.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ CFG_INFO := $(info cfg: building on $(CFG_OSTYPE) $(CFG_CPUTYPE))
1414
CFG_GCC_CFLAGS := -fno-strict-aliasing
1515
CFG_GCC_LINK_FLAGS :=
1616
CFG_BOOT_FLAGS := $(BOOT_FLAGS)
17-
CFG_RUSTC_FLAGS := -nowarn -O
17+
ifdef CFG_DISABLE_OPTIMIZE
18+
CFG_RUSTC_FLAGS := -O
19+
else
20+
CFG_RUSTC_FLAGS := -nowarn -O
21+
endif
1822

1923
# On Darwin, we need to run dsymutil so the debugging information ends
2024
# up in the right place. On other platforms, it automatically gets

configure

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ fi
153153

154154
opt valgrind 1 "run tests with valgrind"
155155
opt docs 1 "build documentation"
156+
opt optimize 1 "build optimized rust code"
156157

157158

158159
if [ $HELP -eq 1 ]

0 commit comments

Comments
 (0)