summaryrefslogtreecommitdiff
path: root/source/luametatex/cmake/mp.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'source/luametatex/cmake/mp.cmake')
-rw-r--r--source/luametatex/cmake/mp.cmake8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/luametatex/cmake/mp.cmake b/source/luametatex/cmake/mp.cmake
index 1d064101d..22680cdb7 100644
--- a/source/luametatex/cmake/mp.cmake
+++ b/source/luametatex/cmake/mp.cmake
@@ -38,6 +38,12 @@ target_compile_definitions(mp PUBLIC
DECNUMDIGITS=1000
)
+if (CMAKE_C_COMPILER_ID STREQUAL "Clang")
+ target_compile_options(mp PRIVATE
+ -Wno-unreachable-code-break
+ )
+endif()
+
if (NOT MSVC)
target_compile_options(mp PRIVATE
-Wno-unused-parameter
@@ -46,5 +52,5 @@ if (NOT MSVC)
-Wno-cast-align
# for decnumber with lto
-fno-strict-aliasing
-)
+ )
endif()