[DRAFT]build: build llama.cpp with cygwin on Windows #12215
Draft
+7
−5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
this draft PR introduce a new approach of build llama.cpp on Windows, which no complex MS's IDE is required.
as official doc mentioned: Please develop/build on Windows for ARM according to the llama.cpp build instructions, section "Building for Windows (x86, x64 and arm64) with MSVC or clang as compilers" with clang as c/c++ compiler (MSVC is no longer supported for llama.cpp on Windows for ARM because of the arm CPU Q4_0 optimization inline code).
there are some problems with this approach and this approach seems a little difficult from point of view of Linux programmer:
[1.5 step of following 3 steps(x86-windows, x86-windows-qnn, arm64-windows-qnn) has verified on a 64-bit Windows10 VM through VMWare Player17 on a powerful Linux workstation]
4.disclaimer
this approach is not the official recommended approach of build llama.cpp on x86-Windows or WoA(Windows on ARM),it's an experimental approach and I have to suspend this experimental because I have no Snapdragon desktop SoC equipped SurfacePro Copilot+PC currently(the cheapest SurfacePro's price is about USD1100 and I already bought a high-end Snapdragon 8 Gen3 mobile SoC equipped phone for relative dev activity and I already have a powerful Dell Linux workstation).