diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-01-17 17:14:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-01-17 17:14:03 +0200 |
commit | d716757ca60240a063fe637a5f427648840f9dc4 (patch) | |
tree | a5e7f984045489ff2a4763188ed2046053e1237b | |
parent | 4749a380461e4dad0a17f29667d5ca1857cb9ba1 (diff) |
Update README
-rw-r--r-- | README | 21 |
1 files changed, 19 insertions, 2 deletions
@@ -1,2 +1,19 @@ -Note that while this project is called msvc-linux, you may be able to use it -on other UNIX-like systems supported by Wine. +Cross-compiling from UNIX to Windows with MSVC using Wine. + +NOTE: we no longer recommend using this approach unless you absolutely +must. Firstly, the whole setup is very hacky and brittle (and potentially +illegal: we were told it's against the license to run MSVC like that) and +often doesn't work with the most recent versions of MSVC (because Wine hasn't +caught up on the new APIs yet). Also, there are edge cases where build2 does +not fully support this "mode" of running MSVC. It works for projects that +don't do anything unusual, but, for example, you won't be able to build +anything that requires MASM. We believe if you must test with MSVC, the only +sane way to do it is with a Windows VM (which is what we do on our CI). If you +just need to test that your code builds for Windows, another option is to use +Clang and the LLVM linker (lld-link) as a cross-compiler. With this approach +you will only need to copy the MSVC standard library and PlatformSDK (and +won't need to mess with Wine). + +See INSTALL for setup instructions. Note that while this project is called +msvc-linux, you may be able to use it on other UNIX-like systems supported +by Wine. |