mstorsjo / msvc-wine

Scripts for setting up and running MSVC in Wine on Linux
Other
682 stars 83 forks source link

WIP: Add options for skipping downloading tools targeting ARM/ARM64, and for skipping ATL and DIA SDK #144

Open mstorsjo opened 2 months ago

mstorsjo commented 2 months ago

This goes on top of #143.

This works, but is quite primitive. If someone wants to pick this PR up and develop it further, that would be very much appreciated! (CC @huangqinjin)

I wanted to make it possible to skip downloading architectures, and/or extra libraries that you don't need. (Although ATL seems very small so it doesn't make much of a difference in any way whether we include it or not.)

I tried to make this general enough that you'd be able to say e.g. that you only want to target e.g. x86 and x64, and thus not adding the extra e.g. *.ARM64 package selections. But if one only wants a compiler to target ARM but not x86/x64 at all, I think we'd need to manually select some more packages, at least for the latest version (when not selecting a version with --msvc-version).

As an extra, if one has skipped installing ARM/ARM64 files, we could also remove a lot of large libraries under WinSDK, but I didn't implement that yet.

hacksysteam commented 1 month ago

@mstorsjo much-needed feature. Most of the time, we don't need ARM and ARM64 architecture support and this causes the huge size of the container