[rtems-libbsd commit] Use optimization level -O2

Sebastian Huber sebh at rtems.org
Thu Nov 12 12:12:58 UTC 2015


Module:    rtems-libbsd
Branch:    master
Commit:    c6899159e469147838e08dfdc1476ac186a60907
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=c6899159e469147838e08dfdc1476ac186a60907

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Nov 12 13:12:22 2015 +0100

Use optimization level -O2

---

 builder.py | 2 +-
 wscript    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/builder.py b/builder.py
index 1f37bc9..3fbe497 100755
--- a/builder.py
+++ b/builder.py
@@ -62,7 +62,7 @@ class error(Exception):
         return self.msg
 
 def common_flags():
-    return ['-O',
+    return ['-O2',
             '-g',
             '-fno-strict-aliasing',
             '-ffreestanding',
diff --git a/wscript b/wscript
index 7f643fe..f2ba9af 100644
--- a/wscript
+++ b/wscript
@@ -58,7 +58,7 @@ def build(bld):
 
     # C/C++ flags
     common_flags = []
-    common_flags += ["-O"]
+    common_flags += ["-O2"]
     common_flags += ["-g"]
     common_flags += ["-fno-strict-aliasing"]
     common_flags += ["-ffreestanding"]



More information about the vc mailing list