Merge pull request #30 from screamerbg/master

Update GCC toolchain to support the new format for the first line of …
Marcus Shawcroft 2016-04-07 18:00:57 +01:00
commit e3afc94f65
1 changed files with 3 additions and 1 deletions

View File

@ -101,7 +101,9 @@ class GCC(mbedToolchain):
def parse_dependencies(self, dep_path):
dependencies = []
for line in open(dep_path).readlines()[1:]:
buff = open(dep_path).readlines()
buff[0] = re.sub('^(.*?)\: ', '', buff[0])
for line in buff:
file = line.replace('\\\n', '').strip()
if file:
# GCC might list more than one dependency on a single line, in this case