mirror of
https://github.com/ollama/ollama
synced 2026-04-23 16:54:06 +00:00
CGO_CFLAGS and CGO_CXXFLAGS were being set without optimization flags, which overrides Go's default -O2 and results in unoptimized C++ code. This caused significant performance degradation in release builds compared to local `go build` which uses the default optimization. - build_darwin.sh: add -O3 to CGO_CFLAGS and CGO_CXXFLAGS exports - Dockerfile: preserve CGO_CFLAGS/CGO_CXXFLAGS from build args instead of overwriting them - app/README.md: update documentation to include -O3 |
||
|---|---|---|
| .. | ||
| support | ||
| .this-is-the-create-dmg-repo | ||
| build_darwin.sh | ||
| build_docker.sh | ||
| build_linux.sh | ||
| build_windows.ps1 | ||
| create-dmg.sh | ||
| deduplicate_cuda_libs.sh | ||
| env.sh | ||
| install.sh | ||
| push_docker.sh | ||
| tag_latest.sh | ||