summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguozhanxin <[email protected]>2020-03-22 09:12:58 +0800
committerguozhanxin <[email protected]>2020-03-22 09:13:50 +0800
commitc1b35a48a588032ebd4aa093a919294fe2741d42 (patch)
tree10f0dbcf82c49617cd37e260f2ad0c580a367ea8
parent30a9ef64c172c14480dd800cfee16b9572679846 (diff)
修复 scons --target=eclipse 时,部分带值宏出错的问题
-rw-r--r--tools/eclipse.py2
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')