ollama/scripts
Jeffrey Morgan f3b476c592
build: add -O3 optimization to CGO flags (#13877)
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
2026-01-24 10:55:38 -08:00
..
support app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
.this-is-the-create-dmg-repo app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
build_darwin.sh build: add -O3 optimization to CGO flags (#13877) 2026-01-24 10:55:38 -08:00
build_docker.sh Update ROCm (6.3 linux, 6.2 windows) and CUDA v12.8 (#9304) 2025-02-25 13:47:36 -08:00
build_linux.sh CI: dedup cuda libraries to reduce payload size (#13704) 2026-01-13 11:25:31 -08:00
build_windows.ps1 build: add -O3 optimization to CGO flags (#13877) 2026-01-24 10:55:38 -08:00
create-dmg.sh app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
deduplicate_cuda_libs.sh CI: dedup cuda libraries to reduce payload size (#13704) 2026-01-13 11:25:31 -08:00
env.sh build: avoid unbounded parallel builds (#12319) 2025-09-18 14:57:01 -07:00
install.sh Linux: switch to zstd compression (#13651) 2026-01-08 15:47:32 -08:00
push_docker.sh
tag_latest.sh