meson: Enable big objects support when building for windows

Fix cross compilation when targetting win64
This commit is contained in:
Hugo Beauzée-Luyssen 2022-01-19 11:53:02 +01:00 committed by Behdad Esfahbod
parent 94ba4d5a44
commit 17cd4457b7
1 changed files with 6 additions and 0 deletions

View File

@ -57,6 +57,12 @@ if host_machine.cpu_family() == 'arm' and cpp.alignment('struct { char c; }') !=
endif
endif
if host_machine.system() == 'windows'
add_project_arguments(cpp.get_supported_arguments([
'-Wa,-mbig-obj'
]), language : 'cpp')
endif
check_headers = [
['unistd.h'],
['sys/mman.h'],