Repository navigation
fix: remove /Od /Ob0 override for Windows CI Release builds - #8961
Conversation
The override was added in 2021 (2cdd0c5) as a workaround for slow Windows CI builds with optimizations enabled — not for nanobind as previously assumed. This caused all Windows Release binaries built through CI to be completely unoptimized (/Od /Ob0 instead of /O2 /Ob2). Remove the override entirely so Windows CI builds use CMake's default Release flags (/MD /O2 /Ob2 /DNDEBUG), producing properly optimized binaries. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughThe CI build configuration removes Visual Studio–specific C++ compiler flag overrides ( Changes
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Add missing changelog entry for: - Fix Windows CI Release builds: erroneous /Od /Ob0 flag override removed, Windows CI Release binaries are now properly optimized (#8961) Co-authored-by: Copilot <[email protected]>
Add missing changelog entry for: - Fix Windows CI Release builds: erroneous /Od /Ob0 flag override removed, Windows CI Release binaries are now properly optimized (#8961) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Copilot <[email protected]>
Summary
Fixes #8932.
/Od /Ob0override intools/ci/cibuild.cmakethat disabled all optimizations and inlining for Windows CI Release builds/MD /O2 /Ob2 /DNDEBUG)Context
The override was added in March 2021 (
2cdd0c5a) by @jpfeuffer as a workaround for Windows CI builds being too slow to compile with optimizations on GitHub Actions runners — not because of nanobind (which wasn't part of the project until years later). The commit message was simply "disable optimization" and the surrounding commits show a sequence of attempts to get Windows CI build times under control.Since 2021, GitHub Actions runners have gotten faster and the codebase/build system has evolved significantly, so this workaround is likely no longer needed. This PR tests whether Windows CI completes in time with default optimization flags.
Test plan
/O2 /Ob2🤖 Generated with Claude Code
Summary by CodeRabbit