[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.pull/1560/head
parent
19c83a8837
commit
f36acd8e31
|
@ -39,7 +39,7 @@ def generate(env):
|
||||||
env.Append(LINKFLAGS=["-sUSE_PTHREADS=1"])
|
env.Append(LINKFLAGS=["-sUSE_PTHREADS=1"])
|
||||||
|
|
||||||
# Build as side module (shared library).
|
# Build as side module (shared library).
|
||||||
env.Append(CPPFLAGS=["-sSIDE_MODULE=1"])
|
env.Append(CCFLAGS=["-sSIDE_MODULE=1"])
|
||||||
env.Append(LINKFLAGS=["-sSIDE_MODULE=1"])
|
env.Append(LINKFLAGS=["-sSIDE_MODULE=1"])
|
||||||
|
|
||||||
# Force wasm longjmp mode.
|
# Force wasm longjmp mode.
|
||||||
|
|
Loading…
Reference in New Issue