Mercurial > fife-parpg
diff SConstruct @ 409:47eca3c3d59d
Fixed a small bug where CXXFLAGS was not being honored.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sun, 31 Jan 2010 05:02:24 +0000 |
parents | 81641655bc38 |
children | efa51189ffc3 |
line wrap: on
line diff
--- a/SConstruct Sat Jan 30 16:11:38 2010 +0000 +++ b/SConstruct Sun Jan 31 05:02:24 2010 +0000 @@ -36,6 +36,7 @@ 'Destination directory (prepended to prefix)', None, PathVariable.PathAccept )) +#vars.Add('CXXFLAGS', "") #propagate the invoking users complete external environment env = Environment(variables = vars, @@ -247,7 +248,7 @@ if debug: if haveusercxxflags: - env.AppendUnique(usercxxflags) + env.AppendUnique(CXXFLAGS=usercxxflags) else: env.AppendUnique(CXXFLAGS=['-O0', '-Wall', '-Wno-unused']) @@ -257,7 +258,7 @@ print "Building DEBUG binaries..." else: if haveusercxxflags: - env.AppendUnique(usercxxflags) + env.AppendUnique(CXXFLAGS=usercxxflags) else: env.AppendUnique(CXXFLAGS=['-O2', '-Wall', '-Wno-unused'])