aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/graphene/fix_clang-cl.patch
blob: 0b71ea3bbbe479d0339df6859decb5118cfa209a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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