mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 14:10:09 +01:00
freedreno: add -Wno-packed-bitfield-compat for meson build
Otherwise huge amount of spam from instr-a2xx.h.. gcc has no way to know that freedreno was never built with such an old gcc version to care about the bugs in old gcc ;-) Reported-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> [added commit message] Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
fa8c1b92b7
commit
7c3f958d23
1 changed files with 12 additions and 2 deletions
|
|
@ -201,12 +201,22 @@ freedreno_includes = [
|
|||
include_directories('ir3')
|
||||
]
|
||||
|
||||
freedreno_c_args = []
|
||||
if cc.has_argument('-Wpacked-bitfield-compat')
|
||||
freedreno_c_args += '-Wno-packed-bitfield-compat'
|
||||
endif
|
||||
|
||||
freedreno_cpp_args = []
|
||||
if cpp.has_argument('-Wpacked-bitfield-compat')
|
||||
freedreno_cpp_args += '-Wno-packed-bitfield-compat'
|
||||
endif
|
||||
|
||||
libfreedreno = static_library(
|
||||
'freedreno',
|
||||
[files_libfreedreno, ir3_nir_trig_c, nir_opcodes_h],
|
||||
include_directories : freedreno_includes,
|
||||
c_args : [c_vis_args],
|
||||
cpp_args : [cpp_vis_args],
|
||||
c_args : [freedreno_c_args, c_vis_args],
|
||||
cpp_args : [freedreno_cpp_args, cpp_vis_args],
|
||||
dependencies : [dep_libdrm, dep_libdrm_freedreno],
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue