Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/intgemm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c9f78fa..11d613e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -22,6 +22,13 @@ else()
endif()
endif()
+if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
+ # GCC 12.1 erroneously detects a bunch unitialised values
+ if (CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 12.1)
+ add_compile_options(-Wno-uninitialized -Wno-maybe-uninitialized)
+ endif()
+endif()
+
# Check if compiler supports AVX2 (this should only catch emscripten)
try_compile(INTGEMM_COMPILER_SUPPORTS_AVX2
${CMAKE_CURRENT_BINARY_DIR}/compile_tests