mirror of https://github.com/ARMmbed/mbed-os.git
Online: Include project root path
### Description
The prior logic assumed that "." would not be added to the include
paths, indicating that the project root would not be added to the
include paths correctly in the online environment ("." would be
incorrect there). This change set started by removing the addition
of "*.", and then fixed building from there.
### Pull request type
[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change
pull/8660/head
parent
1bbcfff8f3
commit
0cba0a34dd
|
|
@ -263,8 +263,8 @@ class Resources(object):
|
|||
def _all_parents(self, files):
|
||||
for name in files:
|
||||
components = name.split(self._sep)
|
||||
start_at = 2 if components[0] in set(['', '.']) else 1
|
||||
for index, directory in reversed(list(enumerate(components))[start_at:]):
|
||||
start_at = 0
|
||||
for index, directory in reversed(list(enumerate(components))):
|
||||
if directory in self._prefixed_labels:
|
||||
start_at = index + 1
|
||||
break
|
||||
|
|
@ -276,7 +276,6 @@ class Resources(object):
|
|||
if file_type is FileType.INC_DIR:
|
||||
parents = set(self._all_parents(self._get_from_refs(
|
||||
FileType.HEADER, key)))
|
||||
parents.add(".")
|
||||
else:
|
||||
parents = set()
|
||||
return sorted(
|
||||
|
|
|
|||
Loading…
Reference in New Issue