Skip to content

Commit

Permalink
Fail IAR exports without linker scirpts with NotSupportedException
Browse files Browse the repository at this point in the history
  • Loading branch information
theotherjimmy committed Apr 12, 2017
1 parent 7d65b0f commit 1e21985
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/export/iar/__init__.py
Expand Up @@ -10,6 +10,7 @@
from tools.export.exporters import Exporter, TargetNotSupportedException
import json
from tools.export.cmsis import DeviceCMSIS
from tools.utils import NotSupportedException
from multiprocessing import cpu_count

class IAR(Exporter):
Expand Down Expand Up @@ -100,6 +101,8 @@ def format_src(self, srcs):

def generate(self):
"""Generate the .eww, .ewd, and .ewp files"""
if not self.resources.linker_script:
raise NotSupportedException("No linker script found.")
srcs = self.resources.headers + self.resources.s_sources + \
self.resources.c_sources + self.resources.cpp_sources + \
self.resources.objects + self.resources.libraries
Expand Down

0 comments on commit 1e21985

Please sign in to comment.