use a semi-optimized build during development

stock dev mode is too slow, but release mode is about 3x slower
than this middle ground
This commit is contained in:
Damien Elmes 2020-10-09 19:51:02 +10:00
parent 301c9587d1
commit efc8e4fb28
2 changed files with 6 additions and 1 deletions

View file

@ -49,7 +49,7 @@ SUBMAKE := $(MAKE) --print-directory
.SUFFIXES: .SUFFIXES:
BUILDFLAGS := --release --strip BUILDFLAGS := --release --strip
DEVFLAGS := $(BUILDFLAGS) DEVFLAGS :=
RUNFLAGS := RUNFLAGS :=
CHECKABLE_PY := pylib qt CHECKABLE_PY := pylib qt
CHECKABLE_RS := rslib rspy CHECKABLE_RS := rslib rspy

View file

@ -17,3 +17,8 @@ features = ["extension-module"]
[lib] [lib]
name = "ankirspy" name = "ankirspy"
crate-type = ["cdylib"] crate-type = ["cdylib"]
[profile.dev]
opt-level = 2
debug = 0
codegen-units = 256