Lists of lists in CPPDEFINES don't work in newer scons versions

This commit is contained in:
loonycyborg 2023-06-09 21:55:03 +03:00
parent b141ad900b
commit 3247d4f0a2
No known key found for this signature in database
GPG key ID: 6E8233FAB8F26D61

View file

@ -107,10 +107,7 @@ libwesnoth_client = client_env.Library("wesnoth-client", wesnoth_client_sources)
#---lua---
lua_sources = GetSources("lua")
env_lua = env.Clone(
CCCOM = env["CXXCOM"],
CPPPATH = ["$CPPPATH", Dir(".").srcnode()],
CPPDEFINES = ["$CPPDEFINES", env["PLATFORM"] != "win32" and "LUA_USE_POSIX" or []])
env_lua = env.Clone(CPPPATH = ["$CPPPATH", Dir(".").srcnode()], CPPDEFINES = ["$CPPDEFINES", env["PLATFORM"] != "win32" and "LUA_USE_POSIX" or None])
env_lua.AppendUnique(CCFLAGS = Split("-Wno-old-style-cast -Wno-useless-cast -Wno-stringop-overflow"))
# Silence some Clang-specific warnings due to extra parentheses in if statements when comparing.