Files
yaze/cmake/utils.cmake
scawful b556b155a5 fix(windows): add /std:c++latest flag for clang-cl to enable std::filesystem
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>
2025-11-20 01:36:08 -05:00

3.1 KiB