Skip to content

Commit e3afc94

Browse files
committed
Merge pull request #30 from screamerbg/master
Update GCC toolchain to support the new format for the first line of …
2 parents 56f5edd + fe75990 commit e3afc94

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/toolchains/gcc.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ def assemble(self, source, object, includes):
101101

102102
def parse_dependencies(self, dep_path):
103103
dependencies = []
104-
for line in open(dep_path).readlines()[1:]:
104+
buff = open(dep_path).readlines()
105+
buff[0] = re.sub('^(.*?)\: ', '', buff[0])
106+
for line in buff:
105107
file = line.replace('\\\n', '').strip()
106108
if file:
107109
# GCC might list more than one dependency on a single line, in this case

0 commit comments

Comments
 (0)