DevHeads.net

com web/rmtools: fix deps dir path: include/BuildVC.php

Link: <a href="http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=b58f5d20a312aaa1e525c75d4231962c5846ffa9" title="http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=b58f5d20a312aaa1e525c75d4231962c5846ffa9">http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=b58f5d20a312aaa1e52...</a>

Log:
fix deps dir path

Changed paths:
M include/BuildVC.php

Diff:
diff --git a/include/BuildVC.php b/include/BuildVC.php
index 22ff570..f962cd2 100644
--- a/include/BuildVC.php
+++ b/include/BuildVC.php
@@ -123,7 +123,7 @@ class BuildVC {
function isPgoSetup()
{
$env = $this->env;
- $env["PATH"] = dirname($this->build_dir) . DIRECTORY_SEPARATOR . "deps;" . $env["PATH"];
+ $env["Path"] = dirname($this->build_dir) . DIRECTORY_SEPARATOR . "deps;" . $env["Path"];

$cmd = 'phpsdk_pgo --ready';
$ret = exec_single_log($cmd, $this->build_dir, $env);
@@ -138,7 +138,7 @@ class BuildVC {
{
$this->log_pgo = isset($this->log_pgo) ? $this->log_pgo . "\n" : "";
$env = $this->env;
- $env["PATH"] = dirname($this->build_dir) . DIRECTORY_SEPARATOR . "deps;" . $env["PATH"];
+ $env["Path"] = dirname($this->build_dir) . DIRECTORY_SEPARATOR . "deps" . DIRECTORY_SEPARATOR . "bin;" . $env["Path"];

$cmd = 'phpsdk_pgo --init';
$ret = exec_single_log($cmd, $this->build_dir, $env);
@@ -152,7 +152,7 @@ class BuildVC {
{
$this->log_pgo = isset($this->log_pgo) ? $this->log_pgo . "\n" : "";
$env = $this->env;
- $env["PATH"] = dirname($this->build_dir) . DIRECTORY_SEPARATOR . "deps;" . $env["PATH"];
+ $env["Path"] = dirname($this->build_dir) . DIRECTORY_SEPARATOR . "deps" . DIRECTORY_SEPARATOR . "bin;" . $env["Path"];

$cmd = 'phpsdk_pgo --train';
$ret = exec_single_log($cmd, $this->build_dir, $env);
@@ -170,6 +170,9 @@ class BuildVC {
if (is_dir($this->obj_dir) && $rm_obj === true) {
rmdir_rf($this->obj_dir);
}
+ if (is_dir($this->obj_dir)) {
+ $this->clean();
+ }
mkdir($this->obj_dir, 0655, true);
$ret = exec_single_log($cmd, $this->build_dir, $this->env);
if (!$ret) {