Commit e3ec42e0 authored by Gary E. Miller's avatar Gary E. Miller 💬

SConstruct: Want about CCFLAGS in environment.

Ouch, totally overrides scons settings...
parent e7d842d4
......@@ -444,7 +444,9 @@ if 'MORECFLAGS' in os.environ:
env.Append(CFLAGS=Split(os.environ['MORECFLAGS']))
# Don't change CCFLAGS if already set by environment.
if 'CCFLAGS' not in os.environ:
if 'CCFLAGS' in os.environ:
announce('Warning: CCFLAGS from environment overriding scons settings')
else:
# Should we build with profiling?
if env['profiling']:
env.Append(CCFLAGS=['-pg'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment