diff options
| author | Bernard Xiong <[email protected]> | 2020-02-26 17:31:15 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-02-26 17:31:15 +0800 |
| commit | 05bd0c07973915a29bc219b1a2c091fa44be2bc9 (patch) | |
| tree | 0eeb5db090cd796915c7bddf82db9e675832edcd /tools | |
| parent | 9c02a7c3089d7c6b0d6941fcd317c427cc8a4203 (diff) | |
| parent | 5dffac8483743385ce671dd7792973431db75e8e (diff) | |
Merge pull request #3411 from armink/fix_eclipse
Fix eclipse
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/eclipse.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/eclipse.py b/tools/eclipse.py index 0f001b8bb8..743d471241 100644 --- a/tools/eclipse.py +++ b/tools/eclipse.py @@ -22,7 +22,7 @@ from xml.etree.ElementTree import SubElement from building import * -MODULE_VER_NUM = 0 +MODULE_VER_NUM = 1 source_pattern = ['*.c', '*.cpp', '*.cxx', '*.s', '*.S', '*.asm'] @@ -301,10 +301,12 @@ def HandleToolOption(tools, env, project, reset): option = linker_paths_option # remove old lib paths for item in option.findall('listOptionValue'): - option.remove(item) + if IsRttEclipsePathFormat(item.get('value')): + # clean old configuration + option.remove(item) # add new old lib paths for path in env['LIBPATH']: - SubElement(option, 'listOptionValue', {'builtIn': 'false', 'value': path}) + SubElement(option, 'listOptionValue', {'builtIn': 'false', 'value': ConverToRttEclipsePathFormat(RelativeProjectPath(env, path).replace('\\', '/'))}) return |
