SImplify linkerscirpt usage

Avoids assigning to things that we can't assign
pull/7939/head
Jimmy Brisson 2018-08-30 08:41:15 -05:00
parent b53a9ea4c0
commit 2516737acb
1 changed files with 1 additions and 5 deletions

View File

@ -64,17 +64,13 @@ class EmBitz(Exporter):
l, _ = splitext(basename(lib))
libraries.append(l[3:])
if self.resources.linker_script is None:
self.resources.linker_script = ''
ctx = {
'name': self.project_name,
'target': self.target,
'toolchain': self.toolchain.name,
'source_files': source_files,
'include_paths': self.resources.inc_dirs,
'script_file': self.resources.linker_script,
'script_file': self.resources.linker_script or '',
'library_paths': self.resources.lib_dirs,
'libraries': libraries,
'symbols': self.toolchain.get_symbols(),