Root cause: clang-cl on Windows Server 2022 with MSVC STL cannot find
std::filesystem without explicit C++ standard flag. The compiler defaults
to an older compatibility mode that only exposes std::experimental::filesystem.
Solution: Add /std:c++latest compiler flag specifically for clang-cl builds
on Windows. This enables proper C++23 standard library support including
std::filesystem from MSVC STL.
The fix is applied via yaze_common interface target in cmake/utils.cmake,
ensuring all targets using yaze_common get the correct flags.
This has blocked Windows releases for 2+ weeks. Fixes compilation errors in:
- src/util/platform_paths.h
- src/util/platform_paths.cc
- src/util/file_util.cc
- All other files using <filesystem>
Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Added caching for ccache and CMake dependencies in CI and release workflows to improve build performance.
- Updated installation commands to include ccache across Linux, macOS, and Windows environments.
- Enhanced CMake configuration steps to utilize ccache for faster builds and added statistics reporting.
Benefits:
- Reduces build times and improves efficiency in CI processes, facilitating quicker feedback and integration.
- Modified the yaze_add_compiler_flags function to set C++ and C standards in the parent scope, ensuring they are applied correctly across the project.
- Added a new compiler flag for MSVC to support C++20/23 features, enhancing compatibility with modern C++ standards.
Benefits:
- Improved consistency in compiler settings across different CMake targets.
- Enhanced support for newer C++ features, facilitating modern development practices.
- Refactored CMakeLists.txt to streamline project configuration and improve readability.
- Introduced new utility functions in `utils.cmake` for setting compiler flags and managing dependencies.
- Added `dependencies.cmake` to centralize third-party dependency management, enhancing modularity.
- Updated CI workflows to include new build options and improved logging for better feedback during configuration.
- Implemented precompiled headers in various libraries to speed up compilation times.
Benefits:
- Improved maintainability and clarity of the build system.
- Enhanced build performance through precompiled headers.
- Streamlined dependency management for easier integration of third-party libraries.