From f07e43cb37b39ad6e2b612a5d99d0cde3d3835d1 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Mon, 24 Dec 2012 10:33:09 +0200 Subject: [PATCH] Opt flags. --- environment.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/environment.py b/environment.py index 0eb0dfec6..5af333c4a 100755 --- a/environment.py +++ b/environment.py @@ -34,14 +34,20 @@ class CCompiler(): def __init__(self, exelist): self.exelist = exelist + def get_exelist(self): + return self.exelist + class GnuCCompiler(CCompiler): - std_warn_flags = ['-Wall'] + std_warn_flags = ['-Wall', '-Winvalid-pch'] + std_opt_flags = ['-O2'] + def __init__(self, exelist): CCompiler.__init__(self, exelist) def get_std_warn_flags(self): return GnuCCompiler.std_warn_flags + def get_std_opt_flags(self): + return GnuCCompiler.std_opt_flags if __name__ == '__main__': gnuc = detect_c_compiler('/usr/bin/cc') - \ No newline at end of file