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:
Jesse Natalie 2024-03-22 12:29:16 -07:00 committed by Marge Bot
parent 72e1e6e120
commit d82ff37ed0

View file

@ -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],