fix: RUST cross compile error
Some checks failed
gitea-sync/antos/pipeline/head There was a failure building this commit

This commit is contained in:
DanyLE 2024-03-10 01:06:28 +01:00
parent 5b6088ffdd
commit 4e583d9795

View File

@ -76,10 +76,10 @@ ifeq ($(LUAFCGI_IGNORE),)
mkdir -p $(BUILD_PREFIX)/bin
RUSTUP_HOME=$(RUSTUP_HOME) CARGO_HOME=$(CARGO_HOME) \
. $(CARGO_HOME)/env && \
rustup default stable && \
rustup target add $(RUST_TARGET) && \
cargo build --target=$(RUST_TARGET) --release \
--manifest-path=$(ROOT_DIR)/antd/luafcgi/Cargo.toml
--manifest-path=$(ROOT_DIR)/antd/luafcgi/Cargo.toml \
--config=$(ROOT_DIR)/antd/luafcgi/.cargo/config.toml
install -m 0755 $(ROOT_DIR)/antd/luafcgi/target/$(RUST_TARGET)/release/luad $(BUILD_PREFIX)/bin
else
@echo "Ignore building $@"