diff options
| author | Meco Man <[email protected]> | 2022-08-21 01:35:44 -0400 |
|---|---|---|
| committer | Man, Jianting (Meco) <[email protected]> | 2022-08-22 12:11:05 -0400 |
| commit | ecd9cd32b7113527188ed3b5361a5d2c2763c5aa (patch) | |
| tree | c0fad54ea84971d3e915b8ff2f2db99ac28e2d2d /tools | |
| parent | aab2428d4177a02cd3b0fd020e47a88de379a6ab (diff) | |
[keil.py] 修复生成Keil4/5工程文件时,头文件路径重复的问题
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/keil.py | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |
