Neither LLDB_CONFIGURATION_DEBUG nor LLDB_CONFIGURATION_RELEASE were ever set in the CMake LLDB project.
Also cleaned up a questionable #ifdef in SharingPtr.h, removing all the references to LLDB_CONFIGURATION_BUILD_AND_INTEGRATION in the process.
Differential Revision: https://reviews.llvm.org/D38552
I'm pretty sure that if you run CMake without specifying anything for CMAKE_BUILD_TYPE then the default is debug, but it doesn't internally set CMAKE_BUILD_TYPE=Debug. Can you double check this handles the default case appropriately?