Skip to content

Commit

Permalink
- fixed build issue with mingw (bug 2834969)
Browse files Browse the repository at this point in the history
git-svn-id: https://jsoncpp.svn.sourceforge.net/svnroot/jsoncpp/trunk/jsoncpp@78 1f120ed1-78a5-a849-adca-83f0a9e25bb6
  • Loading branch information
blep committed Nov 19, 2009
1 parent 897cf24 commit 274dea4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion SConstruct
Expand Up @@ -115,7 +115,18 @@ if not os.path.exists( sconsign_dir_path ):
# Store all dependencies signature in a database
SConsignFile( sconsign_path )

env = Environment( ENV = {'PATH' : os.environ['PATH']},
def make_environ_vars():
"""Returns a dictionnary with environment variable to use when compiling."""
# PATH is required to find the compiler
# TEMP is required for at least mingw
vars = {}
for name in ('PATH', 'TEMP', 'TMP'):
if name in os.environ:
vars[name] = os.environ[name]
return vars


env = Environment( ENV = make_environ_vars(),
toolpath = ['scons-tools'],
tools=[] ) #, tools=['default'] )

Expand Down

0 comments on commit 274dea4

Please sign in to comment.