diff options
| author | Wayne Lin <[email protected]> | 2022-01-26 14:54:14 +0800 |
|---|---|---|
| committer | Wayne Lin <[email protected]> | 2022-01-26 14:54:14 +0800 |
| commit | 648199808e598e0b35fa01c09a1909eeb857e0cd (patch) | |
| tree | 98edafc6ded6e3886e8ab066229ff404824c1b87 /tools | |
| parent | 1577e91c50fb6cea131767163665a0640644fe96 (diff) | |
| parent | e665bacf89c5901244cd43e195a7ae039b3c0463 (diff) | |
Merge branch 'master' of https://github.com/RT-Thread/rt-thread into nuvoton
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/makefile.py | 4 |
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') |
