mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-09 22:49:15 +08:00
02a26abda5
* gstreamer fix clang-cl * v db
23 lines
997 B
Diff
23 lines
997 B
Diff
diff --git a/meson.build b/meson.build
|
|
index 1316366ed..daeaf3cb1 100644
|
|
--- a/meson.build
|
|
+++ b/meson.build
|
|
@@ -62,7 +62,7 @@ endif
|
|
# Ensure that MSVC interprets all source code as UTF-8. Only do this when we're
|
|
# not a subproject, because subprojects are not allowed to call
|
|
# add_global_arguments().
|
|
-if not meson.is_subproject() and cc.get_id() == 'msvc'
|
|
+if not meson.is_subproject() and cc.get_argument_syntax() == 'msvc'
|
|
add_global_arguments(
|
|
cc.get_supported_arguments(['/utf-8']), # set the input encoding to utf-8
|
|
language: ['c', 'cpp'])
|
|
@@ -316,7 +316,7 @@ if get_option('default_library') == 'static'
|
|
if cc.has_link_argument(link_arg)
|
|
gstfull_link_args += link_arg
|
|
link_deps += symbol_map
|
|
- elif cc.get_id() == 'msvc'
|
|
+ elif cc.get_argument_syntax() == 'msvc'
|
|
warning('FIXME: Provide a def file to publish the public symbols')
|
|
else
|
|
error('Failed to link with version script (' + symbol_map + '), check logs for details')
|