From 8de10207f1049e52ec296a60e13f30e33d701e18 Mon Sep 17 00:00:00 2001 From: dimitry Date: Thu, 16 May 2024 13:55:03 +0000 Subject: [PATCH] Add __unix__ to defines --- build.sh | 1 + platform/android/detect.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 build.sh diff --git a/build.sh b/build.sh new file mode 100644 index 000000000000..64dc78d6d41a --- /dev/null +++ b/build.sh @@ -0,0 +1 @@ +scons platform=android target=template_release arch=wasm64 vulkan=off -Q verbose=true diff --git a/platform/android/detect.py b/platform/android/detect.py index 2d35ed56c13e..b7533f278418 100644 --- a/platform/android/detect.py +++ b/platform/android/detect.py @@ -218,7 +218,8 @@ def configure(env: "SConsEnvironment"): env.Append(CCFLAGS=["-I" + ndk_sysroot + "/usr/include/c++/v1"]) env.Append(CCFLAGS=["-I" + ndk_sysroot + "/usr/include"]) - env.Append(CPPDEFINES=["__wasi__", "__ANDROID__"]) + # TODO: investigate why we don't get __unix__ "for free" + env.Append(CPPDEFINES=["__wasi__", "__ANDROID__", "__unix__"]) # Link flags