aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/graphene/fix_clang-cl.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/graphene/fix_clang-cl.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/graphene/fix_clang-cl.patch')
-rw-r--r--vcpkg/ports/graphene/fix_clang-cl.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/vcpkg/ports/graphene/fix_clang-cl.patch b/vcpkg/ports/graphene/fix_clang-cl.patch
new file mode 100644
index 0000000..0b71ea3
--- /dev/null
+++ b/vcpkg/ports/graphene/fix_clang-cl.patch
@@ -0,0 +1,40 @@
+diff --git a/meson.build b/meson.build
+index 1a93dbb95..2f5f7c891 100644
+--- a/meson.build
++++ b/meson.build
+@@ -55,7 +55,7 @@ conf = configuration_data()
+ common_cflags = []
+ common_ldflags = []
+
+-if cc.get_id() == 'msvc'
++if cc.get_argument_syntax() == 'msvc'
+ # Make MSVC more pedantic, this is a recommended pragma list
+ # from _Win32_Programming_ by Rector and Newcomer. Taken from
+ # glib's msvc_recommended_pragmas.h--please see that file for
+@@ -117,7 +117,7 @@ endif
+ common_cflags = cc.get_supported_arguments(test_cflags)
+
+ # MSVC: Let C4819 error out if we do not have the -utf-8 compiler flag
+-if cc.get_id() == 'msvc'
++if cc.get_argument_syntax() == 'msvc'
+ if not common_cflags.contains('-utf-8')
+ common_cflags += cc.get_supported_arguments('-we4819')
+ endif
+@@ -202,7 +202,7 @@ if get_option('default_library') != 'static'
+ if host_system == 'windows'
+ conf.set('DLL_EXPORT', true)
+ conf.set('_GRAPHENE_PUBLIC', '__declspec(dllexport) extern')
+- if cc.get_id() != 'msvc'
++ if cc.get_argument_syntax() != 'msvc'
+ extra_args += ['-fvisibility=hidden']
+ endif
+ else
+@@ -226,7 +226,7 @@ if get_option('gobject_types')
+ )
+ build_gobject = gobject.found()
+ if build_gobject
+- if cc.get_id() == 'msvc'
++ if cc.get_argument_syntax() == 'msvc'
+ extra_args += ['/FImsvc_recommended_pragmas.h']
+ endif
+ endif