[cfe-dev] Trying again - building 64bit code on Windows

Ivan Garramona via cfe-dev cfe-dev at lists.llvm.org
Mon Aug 24 22:26:20 PDT 2015


I use MSYS2/bash here. But just to be sure, i did the same test on cmd.exe,
and it worked. The --sysroot parameter is not even necessary if the 64bit
gcc is in the PATH (again, it must be in front of the 32bit).

I also tried with the Clang from http://llvm.org/builds/ and it worked.
That Clang doesn't need the 32bit mingw on PATH to run, because it is built
with MSVC. Can you try with it?

If you don't want to run the installer, you can exract it with 7-Zip or any
other extractor. Then put the mingw 64bit on PATH, and run:

clang++ test.cpp -static -m64 -pthread
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150825/0695f8ba/attachment.html>


More information about the cfe-dev mailing list