Skip to content

Commit

Permalink
make: Disabling psabi for PPC64 builds
Browse files Browse the repository at this point in the history
Disabling the psabi warning on power pc 64 builds because it is far too noisy.
This is warning about ABI compatibility changes from GCC 5 and shows up all over the place.
This seems like the easiest method for now and what other projects are doing about this issue when I was searching it.

Signed-off-by: Tyler Erickson <[email protected]>
  • Loading branch information
vonericsen committed Apr 1, 2024
1 parent 0661bbf commit b1bca61
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ if c.get_id().contains('gcc') or c.get_id().contains('clang')
'-Wchar-subscripts',
'-Wundef'
]
if target_machine.cpu_family() == 'ppc64'
#power pc builds generate a lot of warnings/notes about ABI changes since GCC-5
#this flag is disabling them because this is way too noisy.
warning_flags += ['-Wno-psabi']
endif
elif c.get_id().contains('msvc')
#See here for enabling/disabling msvc warnings:
#https://learn.microsoft.com/en-us/cpp/build/reference/compiler-option-warning-level?view=msvc-170
Expand Down

0 comments on commit b1bca61

Please sign in to comment.