libc++: patch tz impl to crash on windows instead of FTBFS

This commit is contained in:
Andrew Kelley 2024-04-29 12:45:15 -07:00
parent fb948fbacc
commit f6f0fefd8b

View File

@ -45,7 +45,9 @@ _LIBCPP_WEAK string_view __libcpp_tzdb_directory() {
#if defined(__linux__) #if defined(__linux__)
return "/usr/share/zoneinfo/"; return "/usr/share/zoneinfo/";
#else #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 #endif
} }