Skip to content

Commit aac7190

Browse files
authored
Don't pass -fwrapv to clang on Windows (GH-17458)
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]`
1 parent 788128a commit aac7190

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

ext/date/config.w32

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ PHP_DATE = "yes";
55
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");
66

77
ADD_FLAG('CFLAGS_DATE', "/wd4244");
8-
if (CLANG_TOOLSET) {
9-
ADD_FLAG('CFLAGS_BD_EXT_DATE_LIB', "-fwrapv");
10-
}
118

129
var tl_config = FSO.CreateTextFile("ext/date/lib/timelib_config.h", true);
1310
tl_config.WriteLine("#include \"config.w32.h\"");

0 commit comments

Comments
 (0)