Skip to content

Commit

Permalink
Add __unix__ to defines
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitry- committed May 16, 2024
1 parent e62830a commit 8de1020
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
scons platform=android target=template_release arch=wasm64 vulkan=off -Q verbose=true
3 changes: 2 additions & 1 deletion platform/android/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8de1020

Please sign in to comment.