Skip to content

Commit 80a2f2f

Browse files
committed
Merge branch 'PHP-5.4'
* PHP-5.4: -enable VC11 (vc2012)
2 parents d4d82aa + cea7f09 commit 80a2f2f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

win32/build/config.w32

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,13 @@ if (VCVERS >= 1500 && PHP_MP != 'disable') {
181181
}
182182

183183
// General link flags
184-
DEFINE("LDFLAGS", "/nologo /version:" +
185-
PHP_VERSION + "." + PHP_MINOR_VERSION + "." + PHP_RELEASE_VERSION);
184+
185+
if (VCVERS >= 1700) {
186+
DEFINE("LDFLAGS", "/nologo ");
187+
} else {
188+
DEFINE("LDFLAGS", "/nologo /version:" +
189+
PHP_VERSION + "." + PHP_MINOR_VERSION + "." + PHP_RELEASE_VERSION);
190+
}
186191

187192
// General DLL link flags
188193
DEFINE("DLL_LDFLAGS", "/dll ");

win32/build/confutils.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ VC_VERSIONS[1310] = 'MSVC7.1 (Visual C++ 2003)';
4646
VC_VERSIONS[1400] = 'MSVC8 (Visual C++ 2005)';
4747
VC_VERSIONS[1500] = 'MSVC9 (Visual C++ 2008)';
4848
VC_VERSIONS[1600] = 'MSVC10 (Visual C++ 2010)';
49+
VC_VERSIONS[1700] = 'MSVC11 (Visual C++ 2012)';
4950

5051
var VC_VERSIONS_SHORT = new Array();
5152
VC_VERSIONS_SHORT[1200] = 'VC6';
@@ -54,6 +55,7 @@ VC_VERSIONS_SHORT[1310] = 'VC7.1';
5455
VC_VERSIONS_SHORT[1400] = 'VC8';
5556
VC_VERSIONS_SHORT[1500] = 'VC9';
5657
VC_VERSIONS_SHORT[1600] = 'VC10';
58+
VC_VERSIONS_SHORT[1700] = 'VC11';
5759

5860
if (PROGRAM_FILES == null) {
5961
PROGRAM_FILES = "C:\\Program Files";

0 commit comments

Comments
 (0)