[tools] Remove has_key methods to improve compatibility with Scons version

This commit is contained in:
iysheng 2022-01-25 22:40:21 +08:00 committed by guo
parent c06b57670f
commit 0e30fac069
1 changed files with 2 additions and 2 deletions

View File

@ -51,11 +51,11 @@ def TargetMakefile(env):
if 'CXXFLAGS' in dir(rtconfig):
make.write('CXXFLAGS :=%s' % (rtconfig.CXXFLAGS))
make.write('\n')
if env.has_key('LIBS'):
if ('LIBS' in env):
make.write('EXTERN_LIB := ')
for tlib in env['LIBS']:
make.write('-l%s ' % (tlib))
if env.has_key('LIBPATH'):
if ('LIBPATH' in env):
for tlibpath in env['LIBPATH']:
make.write('-L%s ' % (tlibpath))
make.write('\n')