0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

Provide an option to tunnel the calling shell environment

This commit is contained in:
Andrew Morrow 2013-04-30 11:22:54 -04:00
parent 5c559ec679
commit 2daa35d735

View File

@ -261,6 +261,10 @@ add_option('client-dist-basename', "Name of the client source archive.", 1, Fals
add_option('build-fast-and-loose', "NEVER for production builds", 0, False)
add_option('propagate-shell-environment',
"Pass shell environment to sub-processes (NEVER for production builds)",
0, False)
# don't run configure if user calls --help
if GetOption('help'):
Return()
@ -341,6 +345,9 @@ env = Environment( BUILD_DIR=variantDir,
CONFIGURELOG = '#' + scons_data_dir + '/config.log'
)
if has_option("propagate-shell-environment"):
env['ENV'] = dict(os.environ);
env['_LIBDEPS'] = '$_LIBDEPS_OBJS'
if has_option('build-fast-and-loose'):