Skip to content

Commit 0e30fac

Browse files
iyshengGuozhanxin
authored andcommitted
[tools] Remove has_key methods to improve compatibility with Scons version
1 parent c06b576 commit 0e30fac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/makefile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ def TargetMakefile(env):
5151
if 'CXXFLAGS' in dir(rtconfig):
5252
make.write('CXXFLAGS :=%s' % (rtconfig.CXXFLAGS))
5353
make.write('\n')
54-
if env.has_key('LIBS'):
54+
if ('LIBS' in env):
5555
make.write('EXTERN_LIB := ')
5656
for tlib in env['LIBS']:
5757
make.write('-l%s ' % (tlib))
58-
if env.has_key('LIBPATH'):
58+
if ('LIBPATH' in env):
5959
for tlibpath in env['LIBPATH']:
6060
make.write('-L%s ' % (tlibpath))
6161
make.write('\n')

0 commit comments

Comments
 (0)