From f6f0fefd8b69c0cc7d73317ca7295df50eae5fa0 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 29 Apr 2024 12:45:15 -0700 Subject: [PATCH] libc++: patch tz impl to crash on windows instead of FTBFS --- lib/libcxx/src/tz.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/libcxx/src/tz.cpp b/lib/libcxx/src/tz.cpp index 4425f0e6b9..cc9043c4db 100644 --- a/lib/libcxx/src/tz.cpp +++ b/lib/libcxx/src/tz.cpp @@ -45,7 +45,9 @@ _LIBCPP_WEAK string_view __libcpp_tzdb_directory() { #if defined(__linux__) return "/usr/share/zoneinfo/"; #else -# error "unknown path to the IANA Time Zone Database" +// Zig patch: change this compilation error into a runtime crash. +//# error "unknown path to the IANA Time Zone Database" + abort(); #endif }