diff options
Diffstat (limited to 'src/mongo/resmoke')
-rw-r--r-- | src/mongo/resmoke/SConscript | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/src/mongo/resmoke/SConscript b/src/mongo/resmoke/SConscript index fb80ab1a713..df55dda54e5 100644 --- a/src/mongo/resmoke/SConscript +++ b/src/mongo/resmoke/SConscript @@ -2,6 +2,7 @@ import os import SCons Import('env') +Import("get_option") env = env.Clone() @@ -13,16 +14,18 @@ resmoke_py = env.Substfile( '@install_dir@': install_dir, } ) -resmoke_py_install = env.AutoInstall( - '$PREFIX_BINDIR', - source=resmoke_py, - AIB_COMPONENT='common', - AIB_ROLE='runtime', -) -# TODO SERVER-61013: We shouldn't have to setattr this once AutoInstall is a -# real builder -setattr(resmoke_py_install[0].attributes, 'AIB_NO_ARCHIVE', True) -env.AddPostAction( - resmoke_py_install, - action=SCons.Defaults.Chmod('$TARGET', "u+x"), -) + +if get_option('install-mode') == 'hygienic': + resmoke_py_install = env.AutoInstall( + '$PREFIX_BINDIR', + source=resmoke_py, + AIB_COMPONENT='common', + AIB_ROLE='runtime', + ) + # TODO SERVER-61013: We shouldn't have to setattr this once AutoInstall is a + # real builder + setattr(resmoke_py_install[0].attributes, 'AIB_NO_ARCHIVE', True) + env.AddPostAction( + resmoke_py_install, + action=SCons.Defaults.Chmod('$TARGET', "u+x"), + ) |