summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthread-liu <[email protected]>2021-03-24 09:32:04 +0800
committerthread-liu <[email protected]>2021-03-24 09:32:29 +0800
commitdb22f95775b7506d0c2dcee588e068b80075486b (patch)
treeb43fae934bb69b7eb538cf44ea41b98733924cf4
parentf5d65afc772d2bf9e8d15a20c047939a1839fc05 (diff)
[update] eclipse.py, 兼容 tasking.
-rw-r--r--tools/eclipse.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/eclipse.py b/tools/eclipse.py
index 74c697011e..4d5e28e02e 100644
--- a/tools/eclipse.py
+++ b/tools/eclipse.py
@@ -188,7 +188,8 @@ def HandleToolOption(tools, env, project, reset):
options = tool.findall('option')
# find all compile options
for option in options:
- if option.get('id').find('compiler.include.paths') != -1 or option.get('id').find('compiler.option.includepaths') != -1:
+ option_id = option.get('id')
+ if ('compiler.include.paths' in option_id) or ('compiler.option.includepaths' in option_id) or ('compiler.tasking.include' in option_id):
compile_include_paths_options += [option]
elif option.get('id').find('compiler.include.files') != -1 or option.get('id').find('compiler.option.includefiles') != -1 :
compile_include_files_options += [option]