Skip to content

Target builds on Windows to /MACHINE:X86, as X64 crashes compilation#6

Open
dsienkiewicz wants to merge 1 commit intozmstone:masterfrom
dsienkiewicz:patch/windows_builds_VS2022
Open

Target builds on Windows to /MACHINE:X86, as X64 crashes compilation#6
dsienkiewicz wants to merge 1 commit intozmstone:masterfrom
dsienkiewicz:patch/windows_builds_VS2022

Conversation

@dsienkiewicz
Copy link
Copy Markdown

Target builds on Windows to /MACHINE:X86, as X64 crashes compilation

@OndrejValenta
Copy link
Copy Markdown

OndrejValenta commented Apr 5, 2024

Actually, this is not needed. You can still keep X64 compilation but you have to do following..

  • Use command line and not PowerShell!
  • Install Microsoft C++ toolset, you don't have to go full C++ development, just the compilation toolset is fine
  • Add this c:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\Hostx64\x64\ or similar path (based on your installed version) to PATH environment variable, this will allow add cl.exe to path
  • Before compilation run "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat" which you should have by now. This setups all environment variables needed for compilation of C/++ code, including standard .h files

Now you can run, for example, mix deps.compile snappyer

WindowsTerminal_agxvvrbSUi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants