Merge pull request #11254 from jh228/patch-1

Update gcc.py for preprocessing in linker script
pull/11455/head
Martin Kojtal 2019-09-10 19:41:09 +02:00 committed by GitHub
commit 0e04d74c80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -247,7 +247,8 @@ class GCC(mbedToolchain):
if mem_map:
preproc_output = join(dirname(output), ".link_script.ld")
cmd = (
self.preproc + [mem_map] + self.ld[1:] + ["-o", preproc_output]
self.preproc + [mem_map] + self.ld[1:] + ["-o", preproc_output] +
self.get_compile_options(self.get_symbols(), [])
)
self.notify.cc_verbose("Preproc: %s" % ' '.join(cmd))
self.default_cmd(cmd)