mirror of https://github.com/ARMmbed/mbed-os.git
Make tools cope with no-extension headers
Treat files with no extension as headers, if they are in the cxxsupport folder.pull/11039/head
parent
7c849cb664
commit
6fc767dc71
|
@ -524,8 +524,10 @@ class Resources(object):
|
|||
return
|
||||
|
||||
_, ext = splitext(file_path)
|
||||
|
||||
file_type = self._EXT.get(ext.lower())
|
||||
if ext == "" and "cxxsupport" in fake_path:
|
||||
file_type = FileType.HEADER
|
||||
else:
|
||||
file_type = self._EXT.get(ext.lower())
|
||||
self.add_file_ref(file_type, fake_path, file_path)
|
||||
if file_type == FileType.HEADER:
|
||||
for name, path in self._all_parents(file_path, base_path, into_path):
|
||||
|
|
Loading…
Reference in New Issue