mstorsjo / llvm-mingw

An LLVM/Clang/LLD based mingw-w64 toolchain
Other
1.84k stars 179 forks source link

machine type x64 conflicts with x86 #440

Closed lianquke closed 3 weeks ago

lianquke commented 1 month ago

Dear friends, I am a programming novice, but also a new user of llvm-mingw, thank you for providing such an excellent tool, I have encountered a problem, would like to consult the solution: My computer is Windows x86_64 architecture, I want to build programs for i686 platform, so I downloaded llvm-mingw-20240619-ucrt-i686, but when compiling, I was prompted machine type x64 conflicts with x86. Can you tell me the right thing to do? I'd appreciate it.

longnguyen2004 commented 1 month ago

The x86_64 and i686 in the releases are for the compiler binaries itself. Both versions of the toolchain can compile for all 4 CPU architectures.

lianquke commented 1 month ago

The x86_64 and i686 in the releases are for the compiler binaries itself. Both versions of the toolchain can compile for all 4 CPU architectures.

Thank you for your reply! Could you tell me how to compile programs for i686 using an x86_64 toolchain? Thanks.

longnguyen2004 commented 1 month ago

Use the i686-w64-mingw32-clang++.exe binary

lianquke commented 1 month ago

Use the i686-w64-mingw32-clang++.exe binary

Thanks.You are right!