diff options
| author | guozhanxin <[email protected]> | 2020-03-22 09:12:58 +0800 |
|---|---|---|
| committer | guozhanxin <[email protected]> | 2020-03-22 09:13:50 +0800 |
| commit | c1b35a48a588032ebd4aa093a919294fe2741d42 (patch) | |
| tree | 10f0dbcf82c49617cd37e260f2ad0c580a367ea8 /tools/eclipse.py | |
| parent | 30a9ef64c172c14480dd800cfee16b9572679846 (diff) | |
修复 scons --target=eclipse 时,部分带值宏出错的问题
Diffstat (limited to 'tools/eclipse.py')
| -rw-r--r-- | tools/eclipse.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/eclipse.py b/tools/eclipse.py index 743d471241..878cc1bba8 100644 --- a/tools/eclipse.py +++ b/tools/eclipse.py @@ -228,7 +228,7 @@ def HandleToolOption(tools, env, project, reset): with open('rtconfig_preinc.h', mode = 'w+') as f: f.write(file_header) for cppdef in CPPDEFINES: - f.write("#define " + cppdef + '\n') + f.write("#define " + cppdef.replace('=', ' ') + '\n') f.write(file_tail) # change the c.compiler.include.files files = option.findall('listOptionValue') |
