File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -172,13 +172,15 @@ def format_flags(self):
172
172
flags ['asm_flags' ] = asm_flag_string
173
173
# All non-asm flags are in one template field
174
174
c_flags = list (set (flags ['c_flags' ] + flags ['cxx_flags' ] + flags ['common_flags' ]))
175
+ ld_flags = list (set (flags ['ld_flags' ] ))
175
176
# These flags are in template to be set by user i n IDE
176
177
template = ["--no_vla" , "--cpp" , "--c99" ]
177
178
# Flag is invalid if set in template
178
179
# Optimizations are also set in the template
179
180
invalid_flag = lambda x : x in template or re .match ("-O(\d|time)" , x )
180
181
flags ['c_flags' ] = [flag .replace ('"' ,'\\ "' ) for flag in c_flags if not invalid_flag (flag )]
181
182
flags ['c_flags' ] = " " .join (flags ['c_flags' ])
183
+ flags ['ld_flags' ] = " " .join (flags ['ld_flags' ])
182
184
return flags
183
185
184
186
def format_src (self , srcs ):
Original file line number Diff line number Diff line change 410
410
<ScatterFile >{{linker_script}}</ScatterFile >
411
411
<IncludeLibs ></IncludeLibs >
412
412
<IncludeLibsPath ></IncludeLibsPath >
413
- <Misc ></Misc >
413
+ <Misc >{{ld_flags}} </Misc >
414
414
<LinkerInputFile ></LinkerInputFile >
415
415
<DisabledWarnings ></DisabledWarnings >
416
416
</LDads >
You can’t perform that action at this time.
0 commit comments