ref: 279941535a2c3c28b256d5e7c208cdafef1b74c1
parent: b49d21c12f1021edf904c5a46a243e6dfd3e0f69
author: Dan Minor <daniel.minor@gmail.com>
date: Fri Feb 8 03:55:22 EST 2019
Only check for working compiler in NDK if $(CXX) contains slashes
--- a/build/platform-android.mk
+++ b/build/platform-android.mk
@@ -73,6 +73,14 @@
LDFLAGS += -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libunwind.a
endif
+ifneq ($(findstring /,$(CXX)),$(findstring \,$(CXX)))
+ifneq ($(CXX),$(wildcard $(CXX)))
+ifneq ($(CXX).exe,$(wildcard $(CXX).exe))
+$(error Compiler not found, bad NDKROOT or ARCH?)
+endif
+endif
+endif
+
STL_INCLUDES = \
-I$(NDKROOT)/sources/cxx-stl/stlport/stlport
STL_LIB = \