Skip to content

Commit 1bd8633

Browse files
committed
Add linemarks to dmldep.c file
This improves GCC's error messages for broken #includes inside header blocks
1 parent 3976f05 commit 1bd8633

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

py/dml/dmlc.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,9 @@ def print_cdep(outputbase, headers, footers):
152152
generation'''
153153
f = output.FileOutput(outputbase + '-cdep.c')
154154
with f:
155-
for block in headers + footers:
156-
block.toc()
155+
with output.allow_linemarks():
156+
for block in headers + footers:
157+
block.toc()
157158
f.close()
158159
f.commit()
159160

0 commit comments

Comments
 (0)