Skip to content

Commit

Permalink
build: fixed SKIP_SERVER_RUST not respected
Browse files Browse the repository at this point in the history
Fixes #1056

Co-authored-by: MohammadAliAfsahi <35253602+MohammadAliAfsahi@users.noreply.github.com>
  • Loading branch information
ErikBjare and MohammadAliAfsahi committed May 11, 2024
1 parent 885dbd7 commit 04fbfac
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ build: aw-core/.git
# needed due to https://github.com/pypa/setuptools/issues/1963
# would ordinarily be specified in pyproject.toml, but is not respected due to https://github.com/pypa/setuptools/issues/1963
pip install 'setuptools>49.1.1'
@if (which cargo); then \
echo 'Rust found!'; \
else \
echo 'ERROR: Rust not found, try running with SKIP_SERVER_RUST=true'; \
exit 1; \
@if [ "$(SKIP_SERVER_RUST)" = "false" ]; then \
if (which cargo); then \
echo 'Rust found!'; \
else \
echo 'ERROR: Rust not found, try running with SKIP_SERVER_RUST=true'; \
exit 1; \
fi \
fi
for module in $(SUBMODULES); do \
echo "Building $$module"; \
Expand Down

0 comments on commit 04fbfac

Please sign in to comment.