From d45dd67cbeb8587f77c1e0ded8a9a92db61ee8b5 Mon Sep 17 00:00:00 2001 From: YZBruh Date: Mon, 13 May 2024 22:46:55 +0300 Subject: [PATCH] Update vars.mk --- config/vars.mk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/vars.mk b/config/vars.mk index 0da7e90..69f4eb6 100644 --- a/config/vars.mk +++ b/config/vars.mk @@ -28,8 +28,7 @@ OS := $(shell uname) CUR_DIR := $(shell pwd) # NDK config -$(shell [ -d ../android-ndk ] || echo "error: ndk not found" && exit 1) -NDK_DIR := $(shell cd ../android-ndk && pwd && cd -) +$(shell [ ! -d ../android-ndk ] || $(eval NDK_DIR := $(shell cd ../android-ndk && pwd && cd -))) ifeq ($(OS),Linux) TOOLCHAIN := $(NDK_DIR)/toolchains/llvm/prebuilt/darwin-x86_64