Commit 29c8d755 authored by Eric Engestrom's avatar Eric Engestrom

scons: use python3-compatible list-key check

These changes were generated using python's `2to3` tool.
Signed-off-by: Eric Engestrom's avatarEric Engestrom <eric.engestrom@imgtec.com>
parent 7d48219b
...@@ -193,15 +193,15 @@ def generate(env): ...@@ -193,15 +193,15 @@ def generate(env):
env.Tool(env['toolchain']) env.Tool(env['toolchain'])
# Allow override compiler and specify additional flags from environment # Allow override compiler and specify additional flags from environment
if os.environ.has_key('CC'): if 'CC' in os.environ:
env['CC'] = os.environ['CC'] env['CC'] = os.environ['CC']
if os.environ.has_key('CFLAGS'): if 'CFLAGS' in os.environ:
env['CCFLAGS'] += SCons.Util.CLVar(os.environ['CFLAGS']) env['CCFLAGS'] += SCons.Util.CLVar(os.environ['CFLAGS'])
if os.environ.has_key('CXX'): if 'CXX' in os.environ:
env['CXX'] = os.environ['CXX'] env['CXX'] = os.environ['CXX']
if os.environ.has_key('CXXFLAGS'): if 'CXXFLAGS' in os.environ:
env['CXXFLAGS'] += SCons.Util.CLVar(os.environ['CXXFLAGS']) env['CXXFLAGS'] += SCons.Util.CLVar(os.environ['CXXFLAGS'])
if os.environ.has_key('LDFLAGS'): if 'LDFLAGS' in os.environ:
env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS']) env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS'])
# Detect gcc/clang not by executable name, but through pre-defined macros # Detect gcc/clang not by executable name, but through pre-defined macros
......
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