Martin Storsjö

Results 328 comments of Martin Storsjö

Some additional references; https://learn.microsoft.com/en-us/cpp/c-runtime-library/debug?view=msvc-170 explicitly says: > The compiler defines `_DEBUG` when you specify the /MTd or /MDd option. Therefore, `/D_DEBUG /MTd` or `/D_DEBUG /MDd` is redundant. This redundant define...

> But it is also totally unnecessary to remove it. Currently, debug builds of llvm-project via vcpkg are allegedly broken, as reported by a user. This, because llvm-project switched to...

> Related to #33600 and #34117 FWIW; #34117 probably doesn't work as such. Even if vcpkg itself might require CMake 3.15, the individual projects that are built might be targeting...

> > Explicitly setting `/D_DEBUG` among these flags can be problematic; CMake projects that target CMake 3.15 or newer, with the policy `CMP0091` set to `NEW`, may control the CRT...

> > There is a real problem; @yurybura reported that LLVM 17.0.1 failed to build in vcpkg, when the vcpkg CRT choice had been switched to a debug CRT. (I'm...

> According to the CMake documentation, `CMAKE_MSVC_RUNTIME_LIBRARY` does not overwrite the `/MT[d]`, `/MD[d]` flags manually specified in `CMAKE__FLAGS_`. I think VCPKG should detect running CMake version and define `CMAKE_MSVC_RUNTIME_LIBRARY` (CMake...

Cmake often tries to enable pdb options which don't work well in wine; I usually use a custom patched cmake when building with msvc in wine. See https://gitlab.kitware.com/mstorsjo/cmake/-/commits/msvc/ for one...

@zuowanbushiwo To use CMake with MSVC, you can't use the default "Unix Makefiles" generator. Your best bet is to use Ninja. (The other ones that work with MSVC on Windows...

> @mstorsjo > thanks , my test branch cmake can be compiled successful and output bin is available,I still encountered two problems: > > 1. Is the following error caused...

> Since LLVM is "more blessed" wrt Windows support, compared to GCC, is it possible to get 32-bit SEH working with mingw-w64? I'm assuming that the code generation part is...