pull/15/head
Jussi Pakkanen 12 years ago
parent 3297faaaa8
commit f07e43cb37
  1. 10
      environment.py

@ -34,14 +34,20 @@ class CCompiler():
def __init__(self, exelist): def __init__(self, exelist):
self.exelist = exelist self.exelist = exelist
def get_exelist(self):
return self.exelist
class GnuCCompiler(CCompiler): class GnuCCompiler(CCompiler):
std_warn_flags = ['-Wall'] std_warn_flags = ['-Wall', '-Winvalid-pch']
std_opt_flags = ['-O2']
def __init__(self, exelist): def __init__(self, exelist):
CCompiler.__init__(self, exelist) CCompiler.__init__(self, exelist)
def get_std_warn_flags(self): def get_std_warn_flags(self):
return GnuCCompiler.std_warn_flags return GnuCCompiler.std_warn_flags
def get_std_opt_flags(self):
return GnuCCompiler.std_opt_flags
if __name__ == '__main__': if __name__ == '__main__':
gnuc = detect_c_compiler('/usr/bin/cc') gnuc = detect_c_compiler('/usr/bin/cc')
Loading…
Cancel
Save