From 0314fa2183920a4a2df5cf366743aff7e9d03a40 Mon Sep 17 00:00:00 2001 From: Elias Kosunen Date: Fri, 27 Oct 2023 21:36:00 +0300 Subject: [PATCH] Add -Wno-psabi on gcc to remove bogus warnings on ppc --- .github/workflows/linux.yml | 9 ++++++++- cmake/buildflags.cmake | 1 + cmake/dependencies.cmake | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index c01b7155..3e52d99d 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -85,7 +85,7 @@ jobs: # gcc 12 isn't available on 20.04 (11 and 13 are in ubuntu-toolchain-r) - cxx: g++-12 os: 20.04 - # simdutf has problems with clang 6 and 7 (_ktestc_mask64_u8 undefined) + # FIXME?: simdutf has problems with clang 6 and 7 (_ktestc_mask64_u8 undefined) - cxx: clang++-7 - cxx: clang++-6.0 # FIXME: Locally unreproducible ICE @@ -94,6 +94,13 @@ jobs: - cxx: g++-11 std: 20 os: 20.04 + # FIXME?: weird incompatibility with libstdc++ 13 inside + - cxx: clang++-14 + std: 20 + os: 22.04 + - cxx: clang++-13 + std: 20 + os: 22.04 steps: - uses: actions/checkout@v3 diff --git a/cmake/buildflags.cmake b/cmake/buildflags.cmake index 4539ffbd..afbed0f8 100644 --- a/cmake/buildflags.cmake +++ b/cmake/buildflags.cmake @@ -15,6 +15,7 @@ function(get_gcc_warning_flags flags) -Wctor-dtor-privacy -Wdisabled-optimization -Winvalid-pch -Wnoexcept -Wmissing-declarations -Woverloaded-virtual + -Wno-psabi $<$: -Wdouble-promotion -Wtrampolines -Wzero-as-null-pointer-constant diff --git a/cmake/dependencies.cmake b/cmake/dependencies.cmake index af06bc1f..037a2f67 100644 --- a/cmake/dependencies.cmake +++ b/cmake/dependencies.cmake @@ -36,6 +36,7 @@ if (SCN_TESTS) ) target_link_libraries(scn_gtest PRIVATE Threads::Threads) target_compile_features(scn_gtest PUBLIC cxx_std_14) + target_compile_options(scn_gtest PRIVATE $<$: -Wno-psabi>) endif() if (SCN_BENCHMARKS)