Skip to content

Commit

Permalink
disable aie-rt warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental committed Aug 29, 2024
1 parent 627f7e1 commit cac317d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 26 deletions.
21 changes: 2 additions & 19 deletions cmake/iree_aie_bootgen.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions cmake/iree_aie_rt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 <elf.h>
Expand Down
8 changes: 4 additions & 4 deletions cmake/iree_aie_xrt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ target_include_directories(iree-aie-xclbinutil
${_xclbinutil_source_dir})
target_compile_options(iree-aie-xclbinutil
PRIVATE
$<$<PLATFORM_ID:Linux>:-fexceptions -frtti>
$<$<PLATFORM_ID:Windows>:/EHsc /GR>)
$<$<PLATFORM_ID:Linux>:-fexceptions -frtti -w>
$<$<PLATFORM_ID:Windows>:/EHsc /GR /w>)
set_target_properties(iree-aie-xclbinutil
PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/tools")

Expand Down Expand Up @@ -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
$<$<PLATFORM_ID:Linux>:-fexceptions -frtti>
$<$<PLATFORM_ID:Windows>:/EHsc /GR>)
$<$<PLATFORM_ID:Linux>:-fexceptions -frtti -w>
$<$<PLATFORM_ID:Windows>:/EHsc /GR /w>)
target_link_libraries(${_core_lib} PUBLIC $<BUILD_LOCAL_INTERFACE:${IREE_AIE_BOOST_LIBS}>)
endforeach()

Expand Down

0 comments on commit cac317d

Please sign in to comment.