From 9def851a956b79717fb7754fded67297dda79d98 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Mon, 13 Jan 2025 01:16:43 +0100 Subject: [PATCH] Don't pass -fwrapv to clang on Windows This is apparently not supported there; the VS supplied clang version 18.1.8, reports: `clang-cl: warning: unknown argument ignored in clang-cl: '-fwrapv' [-Wunknown-argument]` --- ext/date/config.w32 | 3 --- 1 file changed, 3 deletions(-) diff --git a/ext/date/config.w32 b/ext/date/config.w32 index 3dad8d438ca96..b053e27aae354 100644 --- a/ext/date/config.w32 +++ b/ext/date/config.w32 @@ -5,9 +5,6 @@ PHP_DATE = "yes"; ADD_SOURCES("ext/date/lib", "astro.c timelib.c dow.c parse_date.c parse_posix.c parse_tz.c tm2unixtime.c unixtime2tm.c parse_iso_intervals.c interval.c", "date"); ADD_FLAG('CFLAGS_DATE', "/wd4244"); -if (CLANG_TOOLSET) { - ADD_FLAG('CFLAGS_BD_EXT_DATE_LIB', "-fwrapv"); -} var tl_config = FSO.CreateTextFile("ext/date/lib/timelib_config.h", true); tl_config.WriteLine("#include \"config.w32.h\"");