Skip to content

Commit 04fbfac

Browse files
build: fixed SKIP_SERVER_RUST not respected
Fixes #1056 Co-authored-by: MohammadAliAfsahi <[email protected]>
1 parent 885dbd7 commit 04fbfac

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Makefile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,13 @@ build: aw-core/.git
4444
# needed due to https://github.com/pypa/setuptools/issues/1963
4545
# would ordinarily be specified in pyproject.toml, but is not respected due to https://github.com/pypa/setuptools/issues/1963
4646
pip install 'setuptools>49.1.1'
47-
@if (which cargo); then \
48-
echo 'Rust found!'; \
49-
else \
50-
echo 'ERROR: Rust not found, try running with SKIP_SERVER_RUST=true'; \
51-
exit 1; \
47+
@if [ "$(SKIP_SERVER_RUST)" = "false" ]; then \
48+
if (which cargo); then \
49+
echo 'Rust found!'; \
50+
else \
51+
echo 'ERROR: Rust not found, try running with SKIP_SERVER_RUST=true'; \
52+
exit 1; \
53+
fi \
5254
fi
5355
for module in $(SUBMODULES); do \
5456
echo "Building $$module"; \

0 commit comments

Comments
 (0)