]> git.ipfire.org Git - thirdparty/vala.git/commit
valaccompiler.vala: Check for MSVC-like compiler meson-msvc
authorChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 28 Jan 2022 04:50:38 +0000 (12:50 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 28 Jan 2022 08:48:52 +0000 (16:48 +0800)
commita1e98b8f4549d34d5cee80ed3f011d2b78cc95c4
tree92c243e335bb80617dd15a4fbc2ae2bdc797af8a
parenteceda7ac9fd7d507566fb53f0c4159f64db2e90f
valaccompiler.vala: Check for MSVC-like compiler

If we are using an enviroment where it is set up to be like a Visual Studio
cmd.exe prompt, and if CC is not set, we assume that we are using Visual Studio

Thus, we need to call pkg-config with the --msvc-syntax flag.  This also apples
if we choose to use clang-cl, so that we can use the correct C compiler/linker
flags when we compile the generated C-code.
codegen/valaccodecompiler.vala
vala/valacodecontext.vala