mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 01:28:07 +02:00
nir_tests: Add /bigobj when compiling with MSVC
Otherwise the opt_varying tests fail to compile
Fixes: 6dbd1dcd ("nir/tests: add tests for nir_opt_varyings")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28345>
This commit is contained in:
parent
72e1e6e120
commit
d82ff37ed0
1 changed files with 6 additions and 1 deletions
|
|
@ -353,6 +353,11 @@ if with_tests
|
|||
msvc_designated_initializer = 'cpp_std=c++20'
|
||||
endif
|
||||
|
||||
msvc_bigobj = []
|
||||
if cc.get_id() == 'msvc'
|
||||
msvc_bigobj = '/bigobj'
|
||||
endif
|
||||
|
||||
test(
|
||||
'nir_tests',
|
||||
executable(
|
||||
|
|
@ -385,7 +390,7 @@ if with_tests
|
|||
'tests/range_analysis_tests.cpp',
|
||||
'tests/vars_tests.cpp',
|
||||
),
|
||||
cpp_args : [cpp_msvc_compat_args],
|
||||
cpp_args : [cpp_msvc_compat_args, msvc_bigobj],
|
||||
override_options: [msvc_designated_initializer],
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
include_directories : [inc_include, inc_src],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue