mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 13:00:21 +01:00
intel/compiler: Use -Werror=vla
Acked-by: Dylan Baker <dylan.c.baker@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32965>
This commit is contained in:
parent
bb44052ee9
commit
ace5daabbd
2 changed files with 5 additions and 0 deletions
|
|
@ -131,6 +131,7 @@ libintel_compiler_elk = static_library(
|
|||
[libintel_compiler_elk_files, intel_nir_files, elk_nir_trig, ir_expression_operation_h],
|
||||
include_directories : [inc_include, inc_src, inc_intel],
|
||||
c_args : [no_override_init_args],
|
||||
cpp_args : ['-Werror=vla'],
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
dependencies : [idep_nir_headers, idep_mesautil, idep_intel_dev],
|
||||
build_by_default : false,
|
||||
|
|
@ -166,6 +167,7 @@ if with_tests
|
|||
),
|
||||
ir_expression_operation_h,
|
||||
include_directories : [inc_include, inc_src, inc_intel],
|
||||
cpp_args : ['-Werror=vla'],
|
||||
link_with : [
|
||||
libintel_common, libisl
|
||||
],
|
||||
|
|
|
|||
|
|
@ -149,6 +149,7 @@ libintel_compiler_brw = static_library(
|
|||
[libintel_compiler_brw_files, intel_nir_files, brw_nir_lower_fsign, brw_nir_trig, ir_expression_operation_h, [brw_device_sha1_gen_src]],
|
||||
include_directories : [inc_include, inc_src, inc_intel],
|
||||
c_args : [no_override_init_args],
|
||||
cpp_args : ['-Werror=vla'],
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
dependencies : [idep_nir_headers, idep_mesautil, idep_intel_dev],
|
||||
build_by_default : false,
|
||||
|
|
@ -183,6 +184,7 @@ if with_intel_bvh_grl
|
|||
link_with : [libisl],
|
||||
include_directories : [inc_include, inc_src, inc_intel],
|
||||
c_args : [pre_args, no_override_init_args],
|
||||
cpp_args : ['-Werror=vla'],
|
||||
link_args : [ld_args_build_id],
|
||||
dependencies : [idep_nir, idep_mesaclc, idep_mesautil, idep_intel_dev,
|
||||
idep_intel_compiler_brw],
|
||||
|
|
@ -217,6 +219,7 @@ if with_tests
|
|||
),
|
||||
ir_expression_operation_h,
|
||||
include_directories : [inc_include, inc_src, inc_intel],
|
||||
cpp_args : ['-Werror=vla'],
|
||||
link_with : libisl,
|
||||
dependencies : [idep_gtest, idep_nir, idep_mesautil, idep_intel_dev,
|
||||
idep_intel_compiler_brw],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue