Commit:    c0a4bdcbdae1c1c39f636ac8006359cdbbf49f0d
Author:    Anatol Belski <a...@php.net>         Thu, 10 Aug 2017 13:13:10 +0200
Parents:   f2140033fc1f8428a48cb000bc2154250aa9ba1a
Branches:  master

Link:       
http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=c0a4bdcbdae1c1c39f636ac8006359cdbbf49f0d

Log:
Add dependencies dirs to the for the PGO runs

Changed paths:
  M  include/BuildVC.php


Diff:
diff --git a/include/BuildVC.php b/include/BuildVC.php
index c32de9c..22ff570 100644
--- a/include/BuildVC.php
+++ b/include/BuildVC.php
@@ -122,8 +122,11 @@ class BuildVC {
 
        function isPgoSetup()
        {
+               $env = $this->env;
+               $env["PATH"] = dirname($this->build_dir) . DIRECTORY_SEPARATOR 
. "deps;" . $env["PATH"];
+
                $cmd = 'phpsdk_pgo --ready';
-               $ret = exec_single_log($cmd, $this->build_dir, $this->env);
+               $ret = exec_single_log($cmd, $this->build_dir, $env);
                if (!$ret) {
                        throw new \Exception('phpsdk_pgo --ready failed');
                }
@@ -134,9 +137,11 @@ class BuildVC {
        function pgoInit()
        {
                $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"];
 
                $cmd = 'phpsdk_pgo --init';
-               $ret = exec_single_log($cmd, $this->build_dir, $this->env);
+               $ret = exec_single_log($cmd, $this->build_dir, $env);
                if (!$ret || 0 != $ret["return_value"]) {
                        throw new \Exception('phpsdk_pgo --init failed');
                }
@@ -146,9 +151,11 @@ class BuildVC {
        function pgoTrain()
        {
                $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"];
 
                $cmd = 'phpsdk_pgo --train';
-               $ret = exec_single_log($cmd, $this->build_dir, $this->env);
+               $ret = exec_single_log($cmd, $this->build_dir, $env);
                if (!$ret || 0 != $ret["return_value"]) {
                        throw new \Exception('phpsdk_pgo --train failed');
                }


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to