mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-10 10:25:36 +08:00
fix realpath getter
This commit is contained in:
@@ -7,6 +7,7 @@ namespace SPC\builder\traits;
|
|||||||
use SPC\builder\LibraryBase;
|
use SPC\builder\LibraryBase;
|
||||||
use SPC\exception\FileSystemException;
|
use SPC\exception\FileSystemException;
|
||||||
use SPC\exception\RuntimeException;
|
use SPC\exception\RuntimeException;
|
||||||
|
use SPC\store\FileSystem;
|
||||||
|
|
||||||
trait UnixLibraryTrait
|
trait UnixLibraryTrait
|
||||||
{
|
{
|
||||||
@@ -33,7 +34,7 @@ trait UnixLibraryTrait
|
|||||||
foreach ($libs as $lib) {
|
foreach ($libs as $lib) {
|
||||||
$libFiles = [];
|
$libFiles = [];
|
||||||
foreach ($lib->getStaticLibs() as $name) {
|
foreach ($lib->getStaticLibs() as $name) {
|
||||||
$name = str_replace(' ', '\ ', realpath(BUILD_LIB_PATH . "/{$name}"));
|
$name = str_replace(' ', '\ ', FileSystem::convertPath(BUILD_LIB_PATH . "/{$name}"));
|
||||||
$name = str_replace('"', '\"', $name);
|
$name = str_replace('"', '\"', $name);
|
||||||
$libFiles[] = $name;
|
$libFiles[] = $name;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user