summaryrefslogtreecommitdiff
path: root/attoconf/lib/c.py
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-08-05 17:27:31 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-08-05 17:30:35 -0700
commit46e9b987ff689c1acfe29c7b980298408d1b95a6 (patch)
tree178f0fcc50a343c3528349ee2c8919c60392af3f /attoconf/lib/c.py
parentd7bb91cd264300351e94e37a84b1de45f2312745 (diff)
downloadattobuild-46e9b987ff689c1acfe29c7b980298408d1b95a6.tar.gz
attobuild-46e9b987ff689c1acfe29c7b980298408d1b95a6.tar.bz2
attobuild-46e9b987ff689c1acfe29c7b980298408d1b95a6.tar.xz
attobuild-46e9b987ff689c1acfe29c7b980298408d1b95a6.zip
Add some stuff whose need became obvious when I tried to use it
Diffstat (limited to 'attoconf/lib/c.py')
-rw-r--r--attoconf/lib/c.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/attoconf/lib/c.py b/attoconf/lib/c.py
index 4d3f252..75bf931 100644
--- a/attoconf/lib/c.py
+++ b/attoconf/lib/c.py
@@ -111,6 +111,7 @@ def try_compile_link_cxx(build, body, CXXFLAGS=[], CPPFLAGS=[], LDFLAGS=[], LDLI
LDFLAGS = build.vars['LDFLAGS'][0] + LDFLAGS
LDLIBS = build.vars['LDLIBS'][0] + LDLIBS
in_ = 'atto-test.cxx'
+ ins = [in_]
out = 'atto-test'
args = CXX + CXXFLAGS + CPPFLAGS + LDFLAGS + ins + LDLIBS + ['-o', out]
@@ -252,7 +253,7 @@ class C(Link, Preprocess):
self.add_option('CC', init=['gcc'],
type=shell, check=cc,
help='C compiler command', hidden=False)
- self.add_option('CFLAGS', init=[],
+ self.add_option('CFLAGS', init=['-O2', '-g'],
type=shell, check=cflags,
help='C compiler flags', hidden=False)
@@ -263,6 +264,6 @@ class Cxx(Link, Preprocess):
self.add_option('CXX', init=['g++'],
type=shell, check=cxx,
help='C++ compiler command', hidden=False)
- self.add_option('CXXFLAGS', init=[],
+ self.add_option('CXXFLAGS', init=['-O2', '-g'],
type=shell, check=cxxflags,
help='C++ compiler flags', hidden=False)