Skip to content

Commit

Permalink
Merge pull request #3228 from chuckatkins/update-dill
Browse files Browse the repository at this point in the history
Update dill
  • Loading branch information
pnorbert authored May 30, 2022
2 parents 35ec755 + 2a44bf6 commit a1ad206
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions thirdparty/dill/dill/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ if(WIN32)
endif()
endif()

# -O3 is known to crash some flavors of clang 14.
if(CMAKE_C_COMPILER_ID MATCHES "Clang" AND
CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 14.0.0)
foreach(_var_suffix IN ITEMS "" _DEBUG _RELEASE _RELWITHDEBINFO _MINSIZEREL)
string(REGEX REPLACE "-O(2|3)" "-O" CMAKE_C_FLAGS${_var_suffix}
"${CMAKE_C_FLAGS${_var_suffix}}")
endforeach()
endif()

# Setup shared library defaults. If explicitly specified somehow, then default
# to that. Otherwise base the default on whether or not shared libs are even
# supported.
Expand Down

0 comments on commit a1ad206

Please sign in to comment.