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
@ -8,6 +8,7 @@ $(shell mkdir -p .build ../dist)
|
||||
|
||||
OUTDIR := ../dist
|
||||
BUILDFLAGS := --release --strip
|
||||
RSPY_TARGET_DIR ?= target
|
||||
|
||||
QT_FTLS := ../qt/ftl
|
||||
|
||||
@ -23,7 +24,7 @@ DEPS := .build/tools .build/vernum ../meta/buildhash $(wildcard $(QT_FTLS)/*.ftl
|
||||
|
||||
.build/develop: $(DEPS)
|
||||
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 $@
|
||||
|
||||
build: $(DEPS)
|
||||
|
Loading…
Reference in New Issue
Block a user