Skip to content

Commit

Permalink
Fix build for Mersenne-Twister pybind11 with clang
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes committed May 24, 2024
1 parent a1d769e commit 940ee31
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/libs/antares/mersenne-twister/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,10 @@ if (${BUILD_MERSENNE_TWISTER_PYBIND11})
PRIVATE
${PROJ}
yuni-static-core)

# Fix for clang+pybind11
# See https://github.com/pybind/pybind11/issues/1604
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
target_compile_options(mersenne_twister_pybind11 PRIVATE -fsized-deallocation)
endif()
endif()

0 comments on commit 940ee31

Please sign in to comment.