Skip to content

Commit 0e04d74

Browse files
authored
Merge pull request #11254 from jh228/patch-1
Update gcc.py for preprocessing in linker script
2 parents 4c3b65d + f3885fd commit 0e04d74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/toolchains/gcc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ def link(self, output, objects, libraries, lib_dirs, mem_map):
247247
if mem_map:
248248
preproc_output = join(dirname(output), ".link_script.ld")
249249
cmd = (
250-
self.preproc + [mem_map] + self.ld[1:] + ["-o", preproc_output]
250+
self.preproc + [mem_map] + self.ld[1:] + ["-o", preproc_output] +
251+
self.get_compile_options(self.get_symbols(), [])
251252
)
252253
self.notify.cc_verbose("Preproc: %s" % ' '.join(cmd))
253254
self.default_cmd(cmd)

0 commit comments

Comments
 (0)