Add spectre switch for suitable vc14 versions

This commit is contained in:
Anatol Belski 2018-09-18 10:43:52 +02:00
parent 3bb218a0a7
commit be02b2e8fd

View file

@ -3090,6 +3090,11 @@ function toolset_setup_common_cflags()
/* Undocumented. */
ADD_FLAG('CFLAGS', "/d2guardspecload");
}
} else if (1900 == VCVERS) {
var subver1900 = probe_binary(PHP_CL).substr(6);
if (subver1900 >= 24241) {
ADD_FLAG('CFLAGS', "/Qspectre");
}
}
}
if (VCVERS >= 1900) {