Skip to content

Commit

Permalink
[MISC] Silence notes about ABI changes on M1 gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
eseiler committed Sep 19, 2024
1 parent 01ba0f7 commit d180156
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/seqan3-test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ if (NOT TARGET seqan3::test)
endif ()
endif ()

# GCC on arm64 (M1): Disable notes about ABI changes. Example:
# `parameter passing for argument of type 'std::ranges::single_view<double>' when C++17 is enabled changed to match C++14 in GCC 10.1`
# https://github.com/gcc-mirror/gcc/commit/56fe3ca30e1343e4f232ca539726506440e23dd3
if ("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "arm64" AND "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
target_compile_options (seqan3_test INTERFACE "-Wno-psabi")
endif ()

target_link_libraries (seqan3_test INTERFACE "seqan3::seqan3" "pthread")
target_include_directories (seqan3_test INTERFACE "${SEQAN3_TEST_INCLUDE_DIR}")
add_library (seqan3::test ALIAS seqan3_test)
Expand Down

0 comments on commit d180156

Please sign in to comment.