From 30a0e5dc67ef3a6984b96c8d114298ec949ef96a Mon Sep 17 00:00:00 2001 From: Jonathan Lifflander Date: Wed, 29 Jun 2022 16:06:24 -0700 Subject: [PATCH] #1563: cmake: enable MPI guards by default regardless of build --- cmake/configure_options.cmake | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cmake/configure_options.cmake b/cmake/configure_options.cmake index b4e5cc8a02..0a66b5573c 100644 --- a/cmake/configure_options.cmake +++ b/cmake/configure_options.cmake @@ -98,12 +98,7 @@ else() set(vt_feature_cmake_mimalloc "0") endif() -string(TOLOWER ${CMAKE_BUILD_TYPE} LOWERCASE_CMAKE_BUILD_TYPE) -if (LOWERCASE_CMAKE_BUILD_TYPE STREQUAL "debug") - option(vt_mpi_guards "Build VT with poison MPI calls: code invoked from VT callbacks cannot invoke MPI functions" ON) -else() - option(vt_mpi_guards "Build VT with poison MPI calls: code invoked from VT callbacks cannot invoke MPI functions" OFF) -endif() +option(vt_mpi_guards "Build VT with poison MPI calls: code invoked from VT callbacks cannot invoke MPI functions" ON) if ((vt_mpi_guards OR vt_trace_only) AND PERL_FOUND) message(STATUS "user MPI prevention guards enabled")