aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-09-20 20:11:29 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2017-09-26 21:46:32 +0300
commitcf6693a4eba6964ade4357212ba9ce34d9f6e4c6 (patch)
tree477eeb2795f779cece7e0445769bcdb162797d77
parent92318c7660ef9048e5aa7ec9921730abe6cd471d (diff)
downloadmeson-cf6693a4eba6964ade4357212ba9ce34d9f6e4c6.zip
meson-cf6693a4eba6964ade4357212ba9ce34d9f6e4c6.tar.gz
meson-cf6693a4eba6964ade4357212ba9ce34d9f6e4c6.tar.bz2
Linker flag for Windows GUI applications was missing on MSVC.
-rw-r--r--mesonbuild/compilers/c.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py
index c17726a..82b1ef0 100644
--- a/mesonbuild/compilers/c.py
+++ b/mesonbuild/compilers/c.py
@@ -924,6 +924,9 @@ class VisualStudioCCompiler(CCompiler):
def get_linker_search_args(self, dirname):
return ['/LIBPATH:' + dirname]
+ def get_gui_app_args(self):
+ return ['/SUBSYSTEM:WINDOWS']
+
def get_pic_args(self):
return [] # PIC is handled by the loader on Windows