mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-23 07:01:55 +08:00
Use optimization level -O2
This commit is contained in:
parent
d6c6017c25
commit
c6899159e4
@ -62,7 +62,7 @@ class error(Exception):
|
|||||||
return self.msg
|
return self.msg
|
||||||
|
|
||||||
def common_flags():
|
def common_flags():
|
||||||
return ['-O',
|
return ['-O2',
|
||||||
'-g',
|
'-g',
|
||||||
'-fno-strict-aliasing',
|
'-fno-strict-aliasing',
|
||||||
'-ffreestanding',
|
'-ffreestanding',
|
||||||
|
2
wscript
2
wscript
@ -58,7 +58,7 @@ def build(bld):
|
|||||||
|
|
||||||
# C/C++ flags
|
# C/C++ flags
|
||||||
common_flags = []
|
common_flags = []
|
||||||
common_flags += ["-O"]
|
common_flags += ["-O2"]
|
||||||
common_flags += ["-g"]
|
common_flags += ["-g"]
|
||||||
common_flags += ["-fno-strict-aliasing"]
|
common_flags += ["-fno-strict-aliasing"]
|
||||||
common_flags += ["-ffreestanding"]
|
common_flags += ["-ffreestanding"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user