Update gcc.py for preprocessing in linker script

To fix https://github.com/ARMmbed/mbed-os/issues/11214, we need this update. :-)
pull/11254/head
jh228 2019-08-19 09:52:44 +09:00 committed by GitHub
parent 033fffea84
commit 71466f8111
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -248,6 +248,7 @@ class GCC(mbedToolchain):
preproc_output = join(dirname(output), ".link_script.ld")
cmd = (
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)