summaryrefslogtreecommitdiffstats
path: root/tools/javascript.py
diff options
context:
space:
mode:
authorDavid Snopek <dsnopek@gmail.com>2023-07-31 15:38:47 -0500
committerGitHub <noreply@github.com>2023-07-31 15:38:47 -0500
commit494b51698dbefd774c2c16057d37fd4de77fdf16 (patch)
tree969761678f025a1ddcf837d3dd8d3ef1edfebe4f /tools/javascript.py
parentc5d8447861fad7e5c812008420c3ec0ca7531590 (diff)
parent9d9f4279ed63da1372d59bc033655eed502fe80e (diff)
downloadredot-cpp-494b51698dbefd774c2c16057d37fd4de77fdf16.tar.gz
Merge pull request #1188 from adamscott/add-platform-macros
Add platform macros
Diffstat (limited to 'tools/javascript.py')
-rw-r--r--tools/javascript.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/javascript.py b/tools/javascript.py
index 5a93584..42c601d 100644
--- a/tools/javascript.py
+++ b/tools/javascript.py
@@ -43,3 +43,5 @@ def generate(env):
env.Append(CCFLAGS=["-O0", "-g"])
elif env["target"] == "release":
env.Append(CCFLAGS=["-O3"])
+
+ env.Append(CPPDEFINES=["WEB_ENABLED", "UNIX_ENABLED"])