Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-28225

SConstruct boost::shared_ptr check is done without injecting boost include path

    • Fully Compatible
    • ALL
    • Platforms 2017-07-10

      Since the third_party boost include path isn't injected when running CheckNullConversion it uses the system boost libraries or will fail if boost isn't installed to the system paths.

      scons: Configure: Checking if implicit boost::shared_ptr null conversion is supported... 
      build/ninja/scons/sconf_temp/conftest_26.cpp <-
        |
        |#include <boost/shared_ptr.hpp>
        |struct TestType { int value; bool boolValue; };
        |bool foo() {
        |    boost::shared_ptr<TestType> sp(new TestType);
        |    return NULL != sp;
        |}
        |
      clang++ -o build/ninja/scons/sconf_temp/conftest_26.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -Wa,--compress-debug-sections -gsplit-dwarf -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fPIE -DNDEBUG build/ninja/scons/sconf_temp/conftest_26.cpp
      scons: Configure: yes
      
      
      

            Assignee:
            tyler.kaye@mongodb.com Tyler Kaye
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: