1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-22 14:52:40 +01:00

Improve Windows compatibility

Test Plan:
  $ arc liberate
  $ arc lint

Reviewers: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D5319
This commit is contained in:
Jakub Vrana 2013-03-10 18:08:14 -07:00
parent 7bf26484fb
commit a925ef9dc1
3 changed files with 3 additions and 3 deletions

View file

@ -352,7 +352,7 @@ final class PhutilLibraryMapBuilder {
$absolute_file = $this->getPath($file); $absolute_file = $this->getPath($file);
$bin = dirname(dirname(__FILE__)).'/phutil_symbols.php'; $bin = dirname(dirname(__FILE__)).'/phutil_symbols.php';
return new ExecFuture('%s --ugly -- %s', $bin, $absolute_file); return new ExecFuture('php %s --ugly -- %s', $bin, $absolute_file);
} }

View file

@ -57,7 +57,7 @@ final class ArcanistPhutilLibraryLinter extends ArcanistLinter {
// Do these one at a time since they individually fanout to saturate // Do these one at a time since they individually fanout to saturate
// available system resources. // available system resources.
$future = new ExecFuture( $future = new ExecFuture(
'%s --show --quiet --ugly -- %s', 'php %s --show --quiet --ugly -- %s',
$bin, $bin,
phutil_get_library_root($lib)); phutil_get_library_root($lib));
$symbols[$lib] = $future->resolveJSON(); $symbols[$lib] = $future->resolveJSON();

View file

@ -156,7 +156,7 @@ EOTEXT
$bin = $this->getScriptPath('scripts/phutil_rebuild_map.php'); $bin = $this->getScriptPath('scripts/phutil_rebuild_map.php');
return phutil_passthru( return phutil_passthru(
'%s %C %s', 'php %s %C %s',
$bin, $bin,
$this->getArgument('all') ? '--drop-cache' : '', $this->getArgument('all') ? '--drop-cache' : '',
$path); $path);