mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
SCons: Use CPPDEFINES instead of CPPFLAGS for pre-processor defines
It's the recommended way to set those, and is more portable (automatically prepends -D for GCC/Clang and /D for MSVC). We still use CPPFLAGS for some pre-processor flags which are not defines.
This commit is contained in:
@@ -66,7 +66,7 @@ if env['builtin_libtheora']:
|
||||
thirdparty_sources += thirdparty_sources_x86_vc
|
||||
|
||||
if (env["x86_libtheora_opt_gcc"] or env["x86_libtheora_opt_vc"]):
|
||||
env_theora.Append(CPPFLAGS=["-DOC_X86_ASM"])
|
||||
env_theora.Append(CPPDEFINES=["OC_X86_ASM"])
|
||||
|
||||
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user