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 /libbsd_waf.py | |
parent | a70edfc49a469645cac275b5f2b0d69ca8219aa8 (diff) |
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 'libbsd_waf.py')
-rw-r--r-- | libbsd_waf.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbsd_waf.py b/libbsd_waf.py index a2f581f7..02e87038 100644 --- a/libbsd_waf.py +++ b/libbsd_waf.py @@ -34,7 +34,7 @@ def configure(conf): def build(bld): # C/C++ flags common_flags = [] - common_flags += ["-O2"] + common_flags += ["-O" + bld.env.OPTIMIZATION] common_flags += ["-g"] common_flags += ["-fno-strict-aliasing"] common_flags += ["-ffreestanding"] |