summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorDaniel Moody <daniel.moody@mongodb.com>2021-04-01 04:49:56 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-04-02 16:46:48 +0000
commit27b41724ed822f1d938e1f90df4adccc2b7d4609 (patch)
tree73f91b6197a12c07d6bb1de5071f7233883dcf64 /SConstruct
parentc0802699f2ce663a895c080163ccc0bbf4fc5db9 (diff)
downloadmongo-27b41724ed822f1d938e1f90df4adccc2b7d4609.tar.gz
SERVER-53952 Moved ninja install dir into build variant due to ninja limitations.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct9
1 files changed, 8 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 6a0ebb0fb57..8b6cf40b90a 100644
--- a/SConstruct
+++ b/SConstruct
@@ -811,9 +811,16 @@ env_vars.Add('CXXFLAGS',
help='Sets flags for the C++ compiler',
converter=variable_shlex_converter)
+default_destdir = '$BUILD_ROOT/install'
+if get_option('ninja') and get_option('build-tools') == 'next':
+ # Workaround for SERVER-53952 where issues wih different
+ # ninja files building to the same install dir. Different
+ # ninja files need to build to different install dirs.
+ default_destdir = '$BUILD_DIR/install'
+
env_vars.Add('DESTDIR',
help='Where builds will install files',
- default='$BUILD_ROOT/install')
+ default=default_destdir)
env_vars.Add('DSYMUTIL',
help='Path to the dsymutil utility',