From c1b35a48a588032ebd4aa093a919294fe2741d42 Mon Sep 17 00:00:00 2001 From: guozhanxin Date: Sun, 22 Mar 2020 09:12:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20scons=20--target=3Declipse?= =?UTF-8?q?=20=E6=97=B6=EF=BC=8C=E9=83=A8=E5=88=86=E5=B8=A6=E5=80=BC?= =?UTF-8?q?=E5=AE=8F=E5=87=BA=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/eclipse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')