summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authoriysheng <[email protected]>2022-01-25 22:40:21 +0800
committerguo <[email protected]>2022-01-26 11:14:50 +0800
commit0e30fac0696d8e1df640303fcd2f3d903906a5ee (patch)
tree7f2bae0bd8d5482186e4be9abc740b85a71dd528 /tools
parentc06b57670ff3c51c0deb5fefff8b47dc23ca8e64 (diff)
[tools] Remove has_key methods to improve compatibility with Scons version
Diffstat (limited to 'tools')
-rw-r--r--tools/makefile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/makefile.py b/tools/makefile.py
index 97001892c9..78dbd2228a 100644
--- a/tools/makefile.py
+++ b/tools/makefile.py
@@ -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')