diff options
author | Alessandro Ghedini <alessandro@ghedini.me> | 2014-08-12 11:49:18 +0200 |
---|---|---|
committer | Alessandro Ghedini <alessandro@ghedini.me> | 2014-08-12 11:49:18 +0200 |
commit | 82426933e01d05934635d2e50b910031515c2b40 (patch) | |
tree | a0aa4a294a1478761606898aab76ad11053a1025 /waftools/detections/compiler.py | |
parent | 5a7efa38ba0f5a971e375c01a7f4c5a572bbfe83 (diff) |
Imported Upstream version 0.5.0
Diffstat (limited to 'waftools/detections/compiler.py')
-rw-r--r-- | waftools/detections/compiler.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/waftools/detections/compiler.py b/waftools/detections/compiler.py index ad1f843..b982188 100644 --- a/waftools/detections/compiler.py +++ b/waftools/detections/compiler.py @@ -22,6 +22,9 @@ def __add_generic_flags__(ctx): "-D_LARGEFILE64_SOURCE", "-std=c99", "-Wall"] + if ctx.is_optimization(): + ctx.env.CFLAGS += ['-O2'] + if ctx.is_debug_build(): ctx.env.CFLAGS += ['-g'] @@ -43,9 +46,6 @@ def __add_clang_flags__(ctx): def __add_mingw_flags__(ctx): ctx.env.CFLAGS += ['-D__USE_MINGW_ANSI_STDIO=1'] - ctx.env.CFLAGS += ['-DBYTE_ORDER=1234'] - ctx.env.CFLAGS += ['-DLITLE_ENDIAN=1234'] - ctx.env.CFLAGS += ['-DBIG_ENDIAN=4321'] ctx.env.LAST_LINKFLAGS += ['-mwindows'] def __add_cygwin_flags__(ctx): |