We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 573bc5a commit cae703cCopy full SHA for cae703c
Makefile.in
@@ -14,7 +14,11 @@ CFG_INFO := $(info cfg: building on $(CFG_OSTYPE) $(CFG_CPUTYPE))
14
CFG_GCC_CFLAGS := -fno-strict-aliasing
15
CFG_GCC_LINK_FLAGS :=
16
CFG_BOOT_FLAGS := $(BOOT_FLAGS)
17
-CFG_RUSTC_FLAGS := -nowarn -O
+ifdef CFG_DISABLE_OPTIMIZE
18
+ CFG_RUSTC_FLAGS := -O
19
+else
20
+ CFG_RUSTC_FLAGS := -nowarn -O
21
+endif
22
23
# On Darwin, we need to run dsymutil so the debugging information ends
24
# up in the right place. On other platforms, it automatically gets
configure
@@ -153,6 +153,7 @@ fi
153
154
opt valgrind 1 "run tests with valgrind"
155
opt docs 1 "build documentation"
156
+opt optimize 1 "build optimized rust code"
157
158
159
if [ $HELP -eq 1 ]
0 commit comments