3 ms·
Shipping cl.exe is illegal, I tried looking at clang but it was alot bigger than 50MB, and it was unclear how to untangle it from installers and other dependenc
by bullen 5y ago
Shipping cl.exe is illegal, I tried looking at clang but it was alot bigger than 50MB, and it was unclear how to untangle it from installers and other dependencies:
https://stackoverflow.com/questions/65807034/clang-llvm-zip-file-installer-for-windows https://stackoverflow.com/questions/65807034/clang-llvm-zip-...
- jcelerier 5y agoI'm shipping it as part of https://ossia.io https://ossia.io (statically linked to the app) ; my installers are between 50 and 100mb for something that ships clang+llvm, boost, qt, ffmpeg and a lot of other things (in addition to its own code): https://github.com/ossia/score/releases/tag/v3.0.0-rc7 https://github.com/ossia/score/releases/tag/v3.0.0-rc7 you just need to build llvm/clang statically and target_link_libraries(<couple stuff>) in cmake (and ship the headers if you want to do useful things, this actually takes much more space uncompressed but it'd be the same whatever the compiler)
- bullen 5y agoThat sounds like a lot of work, I just want a zip with the compiler ready to extract into any project folder.
- jcelerier 5y agoyou can grab it here: https://github.com/mstorsjo/llvm-mingw/releases/tag/20211002 https://github.com/mstorsjo/llvm-mingw/releases/tag/20211002
- bullen 5y agoThx! So back to MinGW it is! I'm surprised this is so hard to find, why is there no official redistributable compiler for Windows?! What is Microsoft so afraid of? This is the only disadvantage Windows has compared to Linux! I guess you can make this alot smaller if you remove the cross compiling parts?
- jcelerier 5y agoit's only "mingw" because it uses the mingw headers. It uses the microsoft modern C runtime (ucrt) and runs just fine under normal cmd.exe shell with c:/windows/formatted/paths, and does not require e.g. MSYS.