Soften windows clang requirement (#7428)

This will no longer error if built with regular gcc on windows.  To help
triage issues that may come in related to different compilers, the runner now
reports the compier used by cgo.
This commit is contained in:
Daniel Hiltgen
2024-10-30 12:28:36 -07:00
committed by GitHub
parent b754f5a6a3
commit 712e99d477
6 changed files with 30 additions and 7 deletions

View File

@@ -124,7 +124,7 @@ The following tools are required as a minimal development environment to build C
- Assuming you used the default install prefix for msys2 above, add `C:\msys64\clang64\bin` and `c:\msys64\usr\bin` to your environment variable `PATH` where you will perform the build steps below (e.g. system-wide, account-level, powershell, cmd, etc.)
> [!NOTE]
> Due to bugs in the GCC C++ library for unicode support, Ollama requires clang on windows. If the gcc executable in your path is not the clang compatibility wrapper, the build will error.
> Due to bugs in the GCC C++ library for unicode support, Ollama should be built with clang on windows.
Then, build the `ollama` binary: