diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2024-08-24 11:56:27 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2024-08-24 12:02:36 +0200 |
commit | f36acd8e312c916c7e53364e1b0bd8eec3e4410e (patch) | |
tree | deb7f87aae765b176d45c982053dc508b8b3ff87 /tools/web.py | |
parent | 19c83a8837738e5014cc35771820bcb8cb73a5ea (diff) | |
download | redot-cpp-f36acd8e312c916c7e53364e1b0bd8eec3e4410e.tar.gz |
[Web/SCons] Use CCFLAGS for SIDE_MODULE option
Was using CPPFLAGS, but should use the explicit scons CCFLAGS which
makes it clear they are applied to both the C and C++ compiler.
CPPFLAGS was also fine (they are preprocessor flags, also applied to
both C and C++), but we should try to stay consistent with what we do
in Godot.
Diffstat (limited to 'tools/web.py')
-rw-r--r-- | tools/web.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/web.py b/tools/web.py index dea42b2..c8f07c5 100644 --- a/tools/web.py +++ b/tools/web.py @@ -39,7 +39,7 @@ def generate(env): env.Append(LINKFLAGS=["-sUSE_PTHREADS=1"]) # Build as side module (shared library). - env.Append(CPPFLAGS=["-sSIDE_MODULE=1"]) + env.Append(CCFLAGS=["-sSIDE_MODULE=1"]) env.Append(LINKFLAGS=["-sSIDE_MODULE=1"]) # Force wasm longjmp mode. |