Skip to content

Commit f36acd8

Browse files
committed
[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.
1 parent 19c83a8 commit f36acd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/web.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def generate(env):
3939
env.Append(LINKFLAGS=["-sUSE_PTHREADS=1"])
4040

4141
# Build as side module (shared library).
42-
env.Append(CPPFLAGS=["-sSIDE_MODULE=1"])
42+
env.Append(CCFLAGS=["-sSIDE_MODULE=1"])
4343
env.Append(LINKFLAGS=["-sSIDE_MODULE=1"])
4444

4545
# Force wasm longjmp mode.

0 commit comments

Comments
 (0)