mirror of https://github.com/ARMmbed/mbed-os.git
proper compile flags for Release target; add fib/trim files to .mbedignore so mbed compile doesn't pick them up
parent
7b7d5fcb91
commit
69d7c530f5
|
@ -66,6 +66,7 @@ class CodeBlocks(GccArm):
|
|||
|
||||
comp_flags = []
|
||||
debug_flags = []
|
||||
release_flags = [ '-Os', '-g1' ]
|
||||
next_is_include = False
|
||||
for f in self.flags['c_flags'] + self.flags['cxx_flags'] + self.flags['common_flags']:
|
||||
f = f.strip()
|
||||
|
@ -97,6 +98,7 @@ class CodeBlocks(GccArm):
|
|||
ctx = {
|
||||
'project_name': self.project_name,
|
||||
'debug_flags': debug_flags,
|
||||
'release_flags': release_flags,
|
||||
'comp_flags': comp_flags,
|
||||
'ld_flags': self.flags['ld_flags'],
|
||||
'headers': sorted(list(set([self.filter_dot(s) for s in self.resources.headers]))),
|
||||
|
|
|
@ -27,6 +27,12 @@
|
|||
<Option type="1" />
|
||||
<Option compiler="arm-elf-gcc" />
|
||||
<Option use_console_runner="0" />
|
||||
<Compiler>
|
||||
<Add option="-DNDEBUG" />
|
||||
{% for f in release_flags -%}
|
||||
<Add option="{{f}}" />
|
||||
{% endfor -%}
|
||||
</Compiler>
|
||||
<Linker>
|
||||
<Add option='-Wl,-Map,"bin/Release/{{project_name}}.map"' />
|
||||
</Linker>
|
||||
|
|
Loading…
Reference in New Issue