OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[CPU][ARM] Do not add '-Wno-macro-redefined' flag for gcc compiler (#29872)
Arseniy Obolenskiy347f52cba24c
diff --git a/src/plugins/intel_cpu/thirdparty/CMakeLists.txt b/src/plugins/intel_cpu/thirdparty/CMakeLists.txtindex 7bea980cb02..7beeef420ec 100644--- a/src/plugins/intel_cpu/thirdparty/CMakeLists.txt+++ b/src/plugins/intel_cpu/thirdparty/CMakeLists.txt@@ -101,7 +101,7 @@ function(ov_add_onednn)ov_add_compiler_flags(-Wno-error)ov_add_compiler_flags(-Wno-undef)ov_add_compiler_flags(-Wno-missing-declarations)- if(ARM OR AARCH64)+ if(NOT CMAKE_COMPILER_IS_GNUCXX AND (ARM OR AARCH64))ov_add_compiler_flags(-Wno-macro-redefined)endif()if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 11 AND CMAKE_COMPILER_IS_GNUCXX)