vcpkg/ports/harfbuzz/fix-win32-build.patch

27 lines
661 B
Diff
Raw Normal View History

diff --git a/src/meson.build b/src/meson.build
index e336037..35af00e 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -349,6 +349,11 @@ hb_subset_sources = files(
'hb-subset.hh',
)
+extra_hb_cpp_args = []
+if cpp.get_argument_syntax() == 'msvc'
+ extra_hb_cpp_args += ['/bigobj']
+endif
+
hb_subset_headers = files(
'hb-subset.h',
'hb-subset-repacker.h'
@@ -472,8 +477,7 @@ defs_list = [harfbuzz_def]
version = '0.@0@.0'.format(hb_version_int)
-extra_hb_cpp_args = []
-if cpp.get_id() == 'msvc'
+if cpp.get_argument_syntax() == 'msvc'
if get_option('default_library') != 'static'
extra_hb_cpp_args += '-DHB_DLL_EXPORT'
endif