From 976c10593cee6e53593dac53c8670ead0b3822c7 Mon Sep 17 00:00:00 2001 From: YZBruh Date: Mon, 13 May 2024 22:53:23 +0300 Subject: [PATCH] Update vars.mk --- config/vars.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/vars.mk b/config/vars.mk index 69f4eb6..15976ba 100644 --- a/config/vars.mk +++ b/config/vars.mk @@ -28,7 +28,13 @@ OS := $(shell uname) CUR_DIR := $(shell pwd) # NDK config -$(shell [ ! -d ../android-ndk ] || $(eval NDK_DIR := $(shell cd ../android-ndk && pwd && cd -))) +NDK_DIR := ../android-ndk + +ifeq ($(wildcard, $(NDK_DIR)),) + ifeq "$(origin CC)" "default" + @printf "Warning: NDK directory not found. And the current configuration may create problems. Set the CC variable in the build command.\n\n" + endif +endif ifeq ($(OS),Linux) TOOLCHAIN := $(NDK_DIR)/toolchains/llvm/prebuilt/darwin-x86_64