diff options
author | Tyler Kaye <tyler.kaye@mongodb.com> | 2017-06-22 10:38:48 -0400 |
---|---|---|
committer | Tyler Kaye <tkaye@princeton.edu> | 2017-06-22 16:31:29 -0400 |
commit | 1517a5dd8382bf8c9fbe27940170867c081a1d03 (patch) | |
tree | adc035e82e18ab19e93957f9dcc7dc37bbe6780d /SConstruct | |
parent | 615183c51b39f4d0ce3402ae5f520fbcd943a95f (diff) | |
download | mongo-1517a5dd8382bf8c9fbe27940170867c081a1d03.tar.gz |
SERVER-28225 Removed boost::shared_pointer check in SConstruct
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/SConstruct b/SConstruct index a0fef9ffc6a..1781d5067c2 100644 --- a/SConstruct +++ b/SConstruct @@ -2069,31 +2069,6 @@ def doConfigure(myenv): # requires LTO builds. pass - # Check if we need to disable null-conversion warnings - if myenv.ToolchainIs('clang'): - def CheckNullConversion(context): - - test_body = """ - #include <boost/shared_ptr.hpp> - struct TestType { int value; bool boolValue; }; - bool foo() { - boost::shared_ptr<TestType> sp(new TestType); - return NULL != sp; - } - """ - - context.Message('Checking if implicit boost::shared_ptr null conversion is supported... ') - ret = context.TryCompile(textwrap.dedent(test_body), ".cpp") - context.Result(ret) - return ret - - conf = Configure(myenv, help=False, custom_tests = { - 'CheckNullConversion' : CheckNullConversion, - }) - if conf.CheckNullConversion() == False: - env.Append( CCFLAGS="-Wno-null-conversion" ) - conf.Finish() - if has_option('osx-version-min'): message=""" The --osx-version-min option is no longer supported. |