Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dsienkiewicz
Copy link

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

@OndrejValenta
Copy link

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