From: Anatol Belski Date: Thu, 13 Nov 2014 10:20:09 +0000 (+0100) Subject: pass vc++ version to clang, that will be forwarded to _MSC_VER X-Git-Tag: PRE_NATIVE_TLS_MERGE~130^2~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6c8349be0410090874e8ace322b2bdb1e2e52a7;p=php pass vc++ version to clang, that will be forwarded to _MSC_VER --- diff --git a/win32/build/confutils.js b/win32/build/confutils.js index 59a522c56b..f201f48e86 100644 --- a/win32/build/confutils.js +++ b/win32/build/confutils.js @@ -2604,6 +2604,9 @@ function toolset_setup_common_cflags() ADD_FLAG('CFLAGS', '-m32'); } ADD_FLAG("CFLAGS", " /fallback "); + + var vc_ver = probe_binary(PATH_PROG('cl', null)); + ADD_FLAG("CFLAGS", "-fms-compatibility-version=" + vc_ver); } }