com php-src: extend flag to reduce re-link time: win32/build/confutils.js
| From: | Anatol Belski | Date: | Thu, 13 Apr 2017 10:50:18 +0000 |
| Subject: | com php-src: extend flag to reduce re-link time: win32/build/confutils.js | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-97578@lists.php.net to get a copy of this message | ||
Commit: 93f594831cebf8c384754860830c56c2700c8763
Author: Anatol Belski <ab@php.net> Thu, 13 Apr 2017 03:05:48 +0200
Parents: d77aa0acb3143f78664f6e34cb255ff1a967953d
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=93f594831cebf8c384754860830c56c2700c8763
Log:
extend flag to reduce re-link time
Changed paths:
M win32/build/confutils.js
Diff:
diff --git a/win32/build/confutils.js b/win32/build/confutils.js
index fd76340..bb748cc 100644
--- a/win32/build/confutils.js
+++ b/win32/build/confutils.js
@@ -1223,7 +1223,7 @@ function SAPI(sapiname, file_list, makefiletarget, cflags, obj_dir)
ldflags += " /PGD:$(PGOPGD_DIR)\\" + makefiletarget.substring(0,
makefiletarget.indexOf(".")) + ".pgd";
} else if (PHP_DEBUG != "yes") {
ADD_FLAG('CFLAGS_' + SAPI, "/GL");
- ADD_FLAG('LDFLAGS_' + SAPI, "/LTCG");
+ ADD_FLAG('LDFLAGS_' + SAPI, "/LTCG:INCREMENTAL");
}
if (MODE_PHPIZE) {
@@ -1426,7 +1426,7 @@ function EXTENSION(extname, file_list, shared, cflags, dllname, obj_dir)
ldflags = " /PGD:$(PGOPGD_DIR)\\" + dllname.substring(0,
dllname.indexOf(".")) + ".pgd";
} else if (PHP_DEBUG != "yes") {
ADD_FLAG('CFLAGS_' + EXT, "/GL");
- ADD_FLAG('LDFLAGS_' + EXT, "/LTCG");
+ ADD_FLAG('LDFLAGS_' + EXT, "/LTCG:INCREMENTAL");
}
MFO.WriteLine("$(BUILD_DIR)\\" + libname + ": $(BUILD_DIR)\\" + dllname);
@@ -1471,7 +1471,7 @@ function EXTENSION(extname, file_list, shared, cflags, dllname, obj_dir)
}
} else if (PHP_DEBUG != "yes") {
ADD_FLAG("STATIC_EXT_CFLAGS", "/GL");
- ADD_FLAG('STATIC_EXT_LDFLAGS', "/LTCG");
+ ADD_FLAG('STATIC_EXT_LDFLAGS', "/LTCG:INCREMENTAL");
}
/* find the header that declares the module pointer,