From ec6ac26e8b60da5407e8f06e6d047df0dc11ec38 Mon Sep 17 00:00:00 2001 From: xarkes Date: Tue, 20 Jun 2017 14:32:31 +0200 Subject: [PATCH] msvc compile with /MT to include redistributables into binaries --- meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meson.build b/meson.build index c434d22b08..c8bec37d10 100644 --- a/meson.build +++ b/meson.build @@ -48,6 +48,8 @@ if host_machine.system() == 'windows' #platform_deps = [cc.find_library('ws2_32')] platform_inc = include_directories(['.','../libr/include','../libr/include/msvc']) host_os = 'windows' + # Add /MT flag to add necessary runtimes into libraries/executables. + add_global_arguments('/MT', language: 'c') endif # load plugin configuration