From b0ff0527a37d988bfbc12d441c60523a50647f84 Mon Sep 17 00:00:00 2001 From: Tsukasa OMOTO Date: Sun, 20 Jul 2014 01:45:43 +0900 Subject: build: enable compiler optimization by default --- waftools/detections/compiler.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'waftools') diff --git a/waftools/detections/compiler.py b/waftools/detections/compiler.py index 2d6f8c6d23..b98218856f 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'] -- cgit v1.2.3