diff options
author | Christian Mauderer <Christian.Mauderer@embedded-brains.de> | 2017-10-02 09:57:04 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-02 14:18:52 +0200 |
commit | d18c6435c4410c3109a4d8acc6e4b48925417d90 (patch) | |
tree | f99ba65857c7248adcd27b99b163fdfce677a4f4 /wscript | |
parent | ffec: Add wmb() to descriptor updates (diff) | |
download | rtems-libbsd-d18c6435c4410c3109a4d8acc6e4b48925417d90.tar.bz2 |
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.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -68,6 +68,11 @@ def options(opt): default = "", dest = "freebsd_options", help = "Set FreeBSD options (developer option).") + opt.add_option("--optimization", + action = "store", + default = "2", + dest = "optimization", + help = "Set optimization level to OPTIMIZATION (-On compiler flag). Default is 2 (-O2).") libbsd_waf.options(opt) def bsp_configure(conf, arch_bsp): @@ -88,6 +93,7 @@ def configure(conf): conf.env.WARNINGS = conf.options.warnings conf.env.NET_CONFIG = conf.options.net_config conf.env.FREEBSD_OPTIONS =conf.options.freebsd_options + conf.env.OPTIMIZATION = conf.options.optimization rtems.configure(conf, bsp_configure) libbsd_waf.configure(conf) |