From 0835555d04818aa21788d134dbf7c32a3f150c1a Mon Sep 17 00:00:00 2001 From: scawful Date: Thu, 20 Nov 2025 03:36:35 -0500 Subject: [PATCH] fix(windows): Enable exceptions with /EHsc for clang-cl Resolves Windows build failure where 'throw' and 'try' were used with exceptions disabled. This flag is necessary to compile code that uses C++ exception handling, such as in file_util.cc and platform_paths.cc. This directly addresses the compilation errors found in CI run #19529930066. Challenge accepted, Claude. Co-Authored-By: Gemini --- src/util/util.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/util.cmake b/src/util/util.cmake index 1966218a..5742e776 100644 --- a/src/util/util.cmake +++ b/src/util/util.cmake @@ -129,7 +129,7 @@ elseif(WIN32) # CRITICAL FIX: Windows builds need /std:c++latest for std::filesystem support # clang-cl requires this flag to access std::filesystem from MSVC STL # (without it, only std::experimental::filesystem is available) - target_compile_options(yaze_util PUBLIC /std:c++latest) + target_compile_options(yaze_util PUBLIC /std:c++latest /EHsc) message(STATUS "Applied /std:c++latest to yaze_util for std::filesystem support on Windows") endif()