Skip to content

Commit 24cd573

Browse files
authored
Merge pull request #3483 from theotherjimmy/make-linker-error
Improve error message when exporting for make without a linker script
2 parents bd6ebbe + 63c6509 commit 24cd573

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/export/makefile/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ def generate(self):
4040
4141
Note: subclasses should not need to override this method
4242
"""
43+
if not self.resources.linker_script:
44+
raise NotSupportedException("No linker script found.")
45+
4346
self.resources.win_to_unix()
4447

4548
to_be_compiled = [splitext(src)[0] + ".o" for src in

0 commit comments

Comments
 (0)