Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects

Don't use GLIBCXX_ASSERTIONS in production

Merged kraus requested to merge 627-add-wp-d_glibcxx_assertions-to-the-build-flags-3 into master
+ 4
1
cmake_minimum_required (VERSION 3.1)
project (OPAL VERSION 2.5.0)
set (PROJECT_BUGREPORT opal@lists.psi.ch)
set (BUILD_FOR_PRODUCTION OFF)
string (REGEX REPLACE "\\.([0-9])\\." ".0\\1." PACKAGE_VERSION ${PROJECT_VERSION})
string (REGEX REPLACE "\\.([0-9])$" ".0\\1" PACKAGE_VERSION ${PACKAGE_VERSION})
@@ -101,7 +102,9 @@ elseif (${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
# Enables extra error checking in the form of precondition assertion, such
# as bounds checking and null pointer checks when dereferencing smart pointers
add_compile_options(-Wp,-D_GLIBCXX_ASSERTIONS)
if (NOT BUILD_FOR_PRODUCTION)
add_compile_options(-Wp,-D_GLIBCXX_ASSERTIONS)
endif()
else ()
message (STATUS "Unknown C++ compiler. Please use the GNU or Intel compiler, if you are having problems.")
endif ()
Loading