Skip to content

Commit

Permalink
speed up extension building process by not removing build dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Huang committed Mar 3, 2015
1 parent 9bec634 commit 4ae79d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build_extensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
$buildDir = $curDir."/build";

//remove the old build dir, if there is one
system("rm -rf $buildDir/");
//update: we actually do not need to remove the build dir, this way we can build the extension faster
//system("rm -rf $buildDir/");

$zephirDir = $buildDir."/zephir";

Expand Down Expand Up @@ -104,7 +105,7 @@
foreach($extensionNames as $extensionName) {
$zephirProjectDir = $zephirDir."/".$extensionName;
if (chdir($zephirProjectDir) ) {
system(__DIR__."/vendor/bin/php-to-zephir phpToZephir:convertDir .");
system(__DIR__."/vendor/bin/php-to-zephir phpToZephir:convertDir $extensionName");

//now do post convertion searches and replaces
echo "Performing post conversion processing...\n";
Expand All @@ -118,7 +119,6 @@
echo "Finished post conversion processing\n";

echo "Building extension...\n";

system("$zephirCommand install");

}
Expand Down

0 comments on commit 4ae79d9

Please sign in to comment.