mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-05-17 19:31:35 +02:00
- fixed build issue with mingw (bug 2834969)
This commit is contained in:
parent
f179a180bd
commit
4e19f180b8
13
SConstruct
13
SConstruct
@ -115,7 +115,18 @@ if not os.path.exists( sconsign_dir_path ):
|
|||||||
# Store all dependencies signature in a database
|
# Store all dependencies signature in a database
|
||||||
SConsignFile( sconsign_path )
|
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'],
|
toolpath = ['scons-tools'],
|
||||||
tools=[] ) #, tools=['default'] )
|
tools=[] ) #, tools=['default'] )
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user