Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  use rather the makefile var
  rename the env setting target and reuse it for build-snap
This commit is contained in:
Anatol Belski 2016-10-30 15:30:17 +01:00
commit d23aa74f07
2 changed files with 8 additions and 9 deletions

View file

@ -1818,7 +1818,7 @@ function is_on_exclude_list_for_test_ini(list, name)
return false;
}
function generate_test_php_ini()
function generate_tmp_php_ini()
{
if ("no" == PHP_TEST_INI) {
/* Test ini generation is disabled. */
@ -1896,7 +1896,7 @@ function generate_files()
STDOUT.WriteLine("Generating files...");
if (!MODE_PHPIZE) {
generate_test_php_ini();
generate_tmp_php_ini();
}
generate_makefile();
if (!MODE_PHPIZE) {
@ -2329,7 +2329,7 @@ function generate_makefile()
if (!MODE_PHPIZE) {
var val = "yes" == PHP_TEST_INI ? PHP_TEST_INI_PATH : "";
/* Be sure it's done after generate_test_php_ini(). */
/* Be sure it's done after generate_tmp_php_ini(). */
MF.WriteLine("PHP_TEST_INI_PATH=\"" + val + "\"");
}
@ -2382,7 +2382,7 @@ function generate_makefile()
MF.WriteBlankLines(1);
var extra_path = PHP_PHP_BUILD + "\\bin";
var extra_path = "$(PHP_BUILD)\\bin";
if (PHP_EXTRA_LIBS.length) {
path = PHP_EXTRA_LIBS.split(';');
for (i = 0; i < path.length; i++) {
@ -2392,7 +2392,7 @@ function generate_makefile()
}
}
}
MF.WriteLine("set-test-env:");
MF.WriteLine("set-tmp-env:");
MF.WriteLine(" @set PATH=" + extra_path + ";$(PATH)");
MF.WriteBlankLines(2);