Skip to content

Commit

Permalink
Add -Wno-psabi on gcc to remove bogus warnings on ppc
Browse files Browse the repository at this point in the history
  • Loading branch information
eliaskosunen committed Oct 27, 2023
1 parent f5f394a commit 0314fa2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -94,6 +94,13 @@ jobs:
- cxx: g++-11
std: 20
os: 20.04
# FIXME?: weird incompatibility with libstdc++ 13 inside <chrono>
- cxx: clang++-14
std: 20
os: 22.04
- cxx: clang++-13
std: 20
os: 22.04

steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions cmake/buildflags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ function(get_gcc_warning_flags flags)
-Wctor-dtor-privacy -Wdisabled-optimization
-Winvalid-pch -Wnoexcept
-Wmissing-declarations -Woverloaded-virtual
-Wno-psabi
$<$<VERSION_GREATER_EQUAL:CXX_COMPILER_VERSION,5.0>:
-Wdouble-promotion -Wtrampolines
-Wzero-as-null-pointer-constant
Expand Down
1 change: 1 addition & 0 deletions cmake/dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 $<$<CXX_COMPILER_ID:GNU>: -Wno-psabi>)
endif()

if (SCN_BENCHMARKS)
Expand Down

0 comments on commit 0314fa2

Please sign in to comment.