From cac317d73c7f6fd98f8469122c820ca32e12d4a9 Mon Sep 17 00:00:00 2001 From: Maksim Levental Date: Wed, 28 Aug 2024 22:45:18 -0500 Subject: [PATCH] disable aie-rt warnings --- cmake/iree_aie_bootgen.cmake | 21 ++------------------- cmake/iree_aie_rt.cmake | 4 +--- cmake/iree_aie_xrt.cmake | 8 ++++---- 3 files changed, 7 insertions(+), 26 deletions(-) diff --git a/cmake/iree_aie_bootgen.cmake b/cmake/iree_aie_bootgen.cmake index 11238be4c..a834c9427 100644 --- a/cmake/iree_aie_bootgen.cmake +++ b/cmake/iree_aie_bootgen.cmake @@ -30,25 +30,8 @@ if(WIN32) target_compile_definitions(iree-aie-bootgen PUBLIC YY_NO_UNISTD_H) endif() if(CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU") - set(_bootgen_c_warning_ignores - -Wno-cast-qual - -Wno-covered-switch-default - -Wno-date-time - -Wno-deprecated-declarations - -Wno-deprecated-register - -Wno-dynamic-class-memaccess - -Wno-format - -Wno-implicit-fallthrough - -Wno-incompatible-function-pointer-types - -Wno-incompatible-pointer-types-discards-qualifiers - -Wno-misleading-indentation - -Wno-pointer-bool-conversion - -Wno-sign-compare - -Wno-tautological-overlap-compare - -Wno-unused) - set(_bootgen_cxx_warning_ignores - -Wno-deprecated-copy -Wno-non-virtual-dtor -Wno-overloaded-virtual - -Wno-register -Wno-reorder -Wno-suggest-override) + set(_bootgen_c_warning_ignores -w) + set(_bootgen_cxx_warning_ignores -w -Wno-register) endif() target_compile_options(iree-aie-bootgen PRIVATE diff --git a/cmake/iree_aie_rt.cmake b/cmake/iree_aie_rt.cmake index 96b9791d2..dcdb7c204 100644 --- a/cmake/iree_aie_rt.cmake +++ b/cmake/iree_aie_rt.cmake @@ -254,9 +254,7 @@ set_target_properties( PROPERTIES COMPILE_OPTIONS "${_aie_runtime_compile_options}") target_compile_definitions(xaiengine PRIVATE ${XAIE_DEBUG} __AIECDO__ XAIE_FEATURE_ALL) if(CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU") - set(xaiengine_c_warning_ignores - -Wno-unused-but-set-variable - -Wno-incompatible-pointer-types) + set(xaiengine_c_warning_ignores -w) target_compile_options(xaiengine PRIVATE ${xaiengine_c_warning_ignores}) endif() # For diff --git a/cmake/iree_aie_xrt.cmake b/cmake/iree_aie_xrt.cmake index 2db2521fa..9606573f8 100644 --- a/cmake/iree_aie_xrt.cmake +++ b/cmake/iree_aie_xrt.cmake @@ -130,8 +130,8 @@ target_include_directories(iree-aie-xclbinutil ${_xclbinutil_source_dir}) target_compile_options(iree-aie-xclbinutil PRIVATE - $<$:-fexceptions -frtti> - $<$:/EHsc /GR>) + $<$:-fexceptions -frtti -w> + $<$:/EHsc /GR /w>) set_target_properties(iree-aie-xclbinutil PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/tools") @@ -181,8 +181,8 @@ foreach(_core_lib IN LISTS _core_libs) target_compile_definitions(${_core_lib} PUBLIC -DBOOST_BIND_GLOBAL_PLACEHOLDERS) target_compile_options(${_core_lib} PRIVATE - $<$:-fexceptions -frtti> - $<$:/EHsc /GR>) + $<$:-fexceptions -frtti -w> + $<$:/EHsc /GR /w>) target_link_libraries(${_core_lib} PUBLIC $) endforeach()