mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
fix realpath getter
This commit is contained in:
parent
da03db051d
commit
17e0265ed0
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user