mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-15 23:39:19 +00:00
SCons: don't try to pass GCC specific switches to other compilers
9ad78036
follow-up. Requested by @CelticMinstrel .
This commit is contained in:
parent
5c6902f3a8
commit
eac2c0791d
|
@ -320,8 +320,9 @@ if env["multilib_arch"]:
|
|||
env.PrependENVPath('LD_LIBRARY_PATH', env["boostlibdir"])
|
||||
|
||||
# Some tests require at least C++11
|
||||
env.AppendUnique(CCFLAGS = Split("-W -Wall"), CFLAGS = ["-std=c99"])
|
||||
env.AppendUnique(CXXFLAGS = "-std=c++" + env["cxx_std"])
|
||||
if "gcc" in env["TOOLS"]:
|
||||
env.AppendUnique(CCFLAGS = Split("-W -Wall"), CFLAGS = ["-std=c99"])
|
||||
env.AppendUnique(CXXFLAGS = "-std=c++" + env["cxx_std"])
|
||||
|
||||
if env["prereqs"]:
|
||||
conf = env.Configure(**configure_args)
|
||||
|
|
Loading…
Reference in New Issue
Block a user