diff options
author | A. Jesse Jiryu Davis <jesse@mongodb.com> | 2019-06-12 22:01:55 -0400 |
---|---|---|
committer | A. Jesse Jiryu Davis <jesse@mongodb.com> | 2019-06-13 14:51:51 -0400 |
commit | 587a768e6893de03130e95eb80807153c3c503c1 (patch) | |
tree | d149d063b8d23e7b071da688eea974db8fe48d15 /SConstruct | |
parent | 750b1a60989052dffd4f7cb3c3077b85f57f914c (diff) | |
download | mongo-587a768e6893de03130e95eb80807153c3c503c1.tar.gz |
SERVER-41592 Remove scons check for std::make_unique
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/SConstruct b/SConstruct index 3ceddb572fc..424058ab99a 100644 --- a/SConstruct +++ b/SConstruct @@ -2919,29 +2919,6 @@ def doConfigure(myenv): if conf.CheckCXX14EnableIfT(): conf.env.SetConfigHeaderDefine('MONGO_CONFIG_HAVE_STD_ENABLE_IF_T') - myenv = conf.Finish() - - def CheckCXX14MakeUnique(context): - test_body = """ - #include <memory> - int main(int argc, char **argv) { - auto foo = std::make_unique<int>(5); - return 0; - } - """ - context.Message('Checking for C++14 std::make_unique support... ') - ret = context.TryCompile(textwrap.dedent(test_body), '.cpp') - context.Result(ret) - return ret - - # Check for std::make_unique support without using the __cplusplus macro - conf = Configure(myenv, help=False, custom_tests = { - 'CheckCXX14MakeUnique': CheckCXX14MakeUnique, - }) - - if conf.CheckCXX14MakeUnique(): - conf.env.SetConfigHeaderDefine('MONGO_CONFIG_HAVE_STD_MAKE_UNIQUE') - # pthread_setname_np was added in GLIBC 2.12, and Solaris 11.3 if posix_system: myenv = conf.Finish() |