From ecd9cd32b7113527188ed3b5361a5d2c2763c5aa Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Sun, 21 Aug 2022 01:35:44 -0400 Subject: [PATCH] =?UTF-8?q?[keil.py]=20=E4=BF=AE=E5=A4=8D=E7=94=9F?= =?UTF-8?q?=E6=88=90Keil4/5=E5=B7=A5=E7=A8=8B=E6=96=87=E4=BB=B6=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=A4=B4=E6=96=87=E4=BB=B6=E8=B7=AF=E5=BE=84=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=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/keil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/keil.py b/tools/keil.py index f85bb767bf..4cbfb97faf 100644 --- a/tools/keil.py +++ b/tools/keil.py @@ -268,7 +268,7 @@ def MDK45Project(tree, target, script): # write include path, definitions and link flags IncludePath = tree.find('Targets/Target/TargetOption/TargetArmAds/Cads/VariousControls/IncludePath') - IncludePath.text = ';'.join([_make_path_relative(project_path, os.path.normpath(i)) for i in CPPPATH]) + IncludePath.text = ';'.join([_make_path_relative(project_path, os.path.normpath(i)) for i in set(CPPPATH)]) Define = tree.find('Targets/Target/TargetOption/TargetArmAds/Cads/VariousControls/Define') Define.text = ', '.join(set(CPPDEFINES))