d3d11: fix building with address sanitizer

When building with address sanitizer it gives next error:
"gstd3d11window_corewindow.cpp : fatal error C1128: number of sections
exceeded object file format limit: compile with /bigobj"

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5782>
This commit is contained in:
Alexander Slobodeniuk 2023-12-07 15:36:26 +01:00 committed by Tim-Philipp Müller
parent a89f33c86c
commit 86b277fb93

View file

@ -73,6 +73,9 @@ if d3d11_winapi_app
d3d11_sources += ['gstd3d11window_corewindow.cpp',
'gstd3d11window_swapchainpanel.cpp']
extra_dep += [runtimeobject_lib]
if cc.get_id() == 'msvc' and get_option('b_sanitize') == 'address'
extra_args += ['/bigobj']
endif
endif
if d3d11_winapi_desktop