mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
allow setting specific target dir for rspy
when using CARGO_TARGET_DIR to define a common build location on macOS, maturin forces a rebuild every time as the link args for the Python lib don't match those used when building the tests
This commit is contained in:
parent
5767ed7a5c
commit
1b0c3b8b75
1 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@ $(shell mkdir -p .build ../dist)
|
||||||
|
|
||||||
OUTDIR := ../dist
|
OUTDIR := ../dist
|
||||||
BUILDFLAGS := --release --strip
|
BUILDFLAGS := --release --strip
|
||||||
|
RSPY_TARGET_DIR ?= target
|
||||||
|
|
||||||
QT_FTLS := ../qt/ftl
|
QT_FTLS := ../qt/ftl
|
||||||
|
|
||||||
|
@ -23,7 +24,7 @@ DEPS := .build/tools .build/vernum ../meta/buildhash $(wildcard $(QT_FTLS)/*.ftl
|
||||||
|
|
||||||
.build/develop: $(DEPS)
|
.build/develop: $(DEPS)
|
||||||
touch ../proto/backend.proto
|
touch ../proto/backend.proto
|
||||||
FTL_TEMPLATE_DIRS="$(QT_FTLS)" maturin develop
|
FTL_TEMPLATE_DIRS="$(QT_FTLS)" CARGO_TARGET_DIR="$(RSPY_TARGET_DIR)" maturin develop
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
build: $(DEPS)
|
build: $(DEPS)
|
||||||
|
|
Loading…
Reference in a new issue