diff options
| author | armink <[email protected]> | 2020-02-26 14:48:23 +0800 |
|---|---|---|
| committer | armink <[email protected]> | 2020-02-26 15:19:18 +0800 |
| commit | 544a134f590ac251fef1842a9ea288c513f7c688 (patch) | |
| tree | 01d30d56776ff29d067654c4d28c1e2e6feea7ce /tools | |
| parent | 7335fd389e0b02a9c517468d8ff735619717f555 (diff) | |
[tools] Fix the lib paths not found issue.
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 |
