From ba7a4cbf494f39d08717084c61ee865609b96619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Sun, 9 Dec 2012 14:19:04 +0100 Subject: Provide 'cxxflags' configuration variable. Change-Id: I6009b99608491ba5f05de179d740b44c4371bd27 diff --git a/BuildTools/SCons/SConscript.boot b/BuildTools/SCons/SConscript.boot index 56a3dd1..0c33f06 100644 --- a/BuildTools/SCons/SConscript.boot +++ b/BuildTools/SCons/SConscript.boot @@ -8,7 +8,8 @@ sys.path.append(Dir("#/BuildTools/SCons").abspath) vars = Variables(os.path.join(Dir("#").abspath, "config.py")) vars.Add('cc', "C compiler") vars.Add('cxx', "C++ compiler") -vars.Add('ccflags', "Extra C(++) compiler flags") +vars.Add('ccflags', "Extra C/C++/ObjC compiler flags") +vars.Add('cxxflags', "Extra C++ compiler flags") vars.Add('link', "Linker") vars.Add('linkflags', "Extra linker flags") vars.Add(BoolVariable("ccache", "Use CCache", "no")) @@ -123,6 +124,7 @@ if isinstance(ccflags, str) : env["CCFLAGS"] = ccflags.split(" ") else : env["CCFLAGS"] = ccflags +env["CXXFLAGS"] = env.get("cxxflags", []) if "link" in env : env["SHLINK"] = env["link"] env["LINK"] = env["link"] -- cgit v0.10.2-6-g49f6