Skip to content

Commit

Permalink
#1563: cmake: enable MPI guards by default regardless of build
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Jun 29, 2022
1 parent 9f48ecd commit 30a0e5d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cmake/configure_options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 30a0e5d

Please sign in to comment.