Merge branch 'msvc-force-codeset' into 'master'

msvc: set the execution and source encoding to utf-8. Fixes #1294

Closes #1294

See merge request GNOME/glib!25
This commit is contained in:
Philip Withnall 2018-05-28 10:22:00 +00:00
commit 0c624379aa

View File

@ -23,6 +23,8 @@ if cc.get_id() == 'msvc'
# Disable SAFESEH with MSVC for plugins and libs that use external deps that
# are built with MinGW
noseh_link_args = ['/SAFESEH:NO']
# Set the input and exec encoding to utf-8, like is the default with GCC
add_project_arguments(cc.get_supported_arguments(['/utf-8']), language: 'c')
else
noseh_link_args = []
# -mms-bitfields vs -fnative-struct ?