Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1 from rbrito/force-scons-honor-variables
Browse files Browse the repository at this point in the history
Force scons honor variables
  • Loading branch information
derat committed Feb 29, 2012
2 parents ae9295f + 1769860 commit 26d9a09
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -5,4 +5,6 @@ xsettingsd
*.[ao]
*_test
build-stamp
debian/
debian/files
debian/*.log
debian/*.substvars
12 changes: 9 additions & 3 deletions SConstruct
@@ -1,3 +1,4 @@
# -*- python -*-
# Copyright 2009 Daniel Erat <dan@erat.org>
# All rights reserved.

Expand Down Expand Up @@ -38,9 +39,14 @@ run_tests_builder = Builder(action=run_tests)
env = Environment(
BUILDERS = {
'RunTests': run_tests_builder,
},
ENV=os.environ)
env['CCFLAGS'] = '-Wall -Werror'
})

env.Append(CPPFLAGS = os.environ['CPPFLAGS'],
CCFLAGS = os.environ['CCFLAGS'],
CXXFLAGS = os.environ['CXXFLAGS'],
LDFLAGS = os.environ['LDFLAGS'])

env.Append(CCFLAGS = '-Wall -Werror')


srcs = Split('''\
Expand Down

0 comments on commit 26d9a09

Please sign in to comment.