mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-17 02:57:54 +08:00
Allow to set optimization level during configure.
This allows to set the optimization level for libbsd via a configure switch. Useful for building with for example no optimization during debug or with size optimization for space restricted targets.
This commit is contained in:

committed by
Sebastian Huber

parent
a70edfc49a
commit
d18c6435c4
@@ -371,6 +371,7 @@ class ModuleManager(builder.ModuleManager):
|
||||
self.add('def build(bld):')
|
||||
self.add(' # C/C++ flags')
|
||||
self.add(' common_flags = []')
|
||||
self.add(' common_flags += ["-O%s" % (bld.env.OPTIMIZATION)]')
|
||||
for f in builder.commonFlags():
|
||||
self.add(' common_flags += ["%s"]' % (f))
|
||||
self.add(' if bld.env.WARNINGS:')
|
||||
|
Reference in New Issue
Block a user