File tree 3 files changed +7
-2
lines changed
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 573bc5ad0190e2c309d13d5d2268d117c3cf2947
2
+ refs/heads/master: cae703c0b1fabbc6ed3f6501198778d18a110fc2
Original file line number Diff line number Diff line change @@ -14,7 +14,11 @@ CFG_INFO := $(info cfg: building on $(CFG_OSTYPE) $(CFG_CPUTYPE))
14
14
CFG_GCC_CFLAGS := -fno-strict-aliasing
15
15
CFG_GCC_LINK_FLAGS :=
16
16
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
18
22
19
23
# On Darwin, we need to run dsymutil so the debugging information ends
20
24
# up in the right place. On other platforms, it automatically gets
Original file line number Diff line number Diff line change 153
153
154
154
opt valgrind 1 " run tests with valgrind"
155
155
opt docs 1 " build documentation"
156
+ opt optimize 1 " build optimized rust code"
156
157
157
158
158
159
if [ $HELP -eq 1 ]
You can’t perform that action at this time.
0 commit comments