提交 0e30fac0 编写于 作者: I iysheng 提交者: guo

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

上级 c06b5767
......@@ -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')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册