1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

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]`
This commit is contained in:
Christoph M. Becker
2025-01-13 14:10:23 +01:00
committed by GitHub
parent 788128aec7
commit aac71904ca

View File

@@ -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\"");