mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-10 10:25:36 +08:00
lint
This commit is contained in:
@@ -15,7 +15,6 @@ use SPC\toolchain\ToolchainManager;
|
|||||||
use SPC\toolchain\ZigToolchain;
|
use SPC\toolchain\ZigToolchain;
|
||||||
use SPC\util\GlobalEnvManager;
|
use SPC\util\GlobalEnvManager;
|
||||||
use SPC\util\SPCConfigUtil;
|
use SPC\util\SPCConfigUtil;
|
||||||
use SPC\util\SPCTarget;
|
|
||||||
|
|
||||||
class Extension
|
class Extension
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -196,8 +196,7 @@ class Zig extends CustomPackage
|
|||||||
'url' => $url,
|
'url' => $url,
|
||||||
'filename' => $tarball,
|
'filename' => $tarball,
|
||||||
]);
|
]);
|
||||||
}
|
} catch (\Throwable $e) {
|
||||||
catch (\Throwable $e) {
|
|
||||||
logger()->warning("[zig] failed to download {$tarball}: {$e->getMessage()}");
|
logger()->warning("[zig] failed to download {$tarball}: {$e->getMessage()}");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,10 @@ use SPC\store\FileSystem;
|
|||||||
*/
|
*/
|
||||||
class PgoManager
|
class PgoManager
|
||||||
{
|
{
|
||||||
|
public const MODE_INSTRUMENT = 'instrument';
|
||||||
|
|
||||||
|
public const MODE_USE = 'use';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SAPIs whose clang-compiled output can be PGO'd. frankenphp is included
|
* SAPIs whose clang-compiled output can be PGO'd. frankenphp is included
|
||||||
* because its cgo glue is C compiled by zig — the Go side it wraps is
|
* because its cgo glue is C compiled by zig — the Go side it wraps is
|
||||||
@@ -30,10 +34,6 @@ class PgoManager
|
|||||||
'frankenphp' => BUILD_TARGET_FRANKENPHP,
|
'frankenphp' => BUILD_TARGET_FRANKENPHP,
|
||||||
];
|
];
|
||||||
|
|
||||||
public const MODE_INSTRUMENT = 'instrument';
|
|
||||||
|
|
||||||
public const MODE_USE = 'use';
|
|
||||||
|
|
||||||
private string $profileRoot;
|
private string $profileRoot;
|
||||||
|
|
||||||
private string $mode;
|
private string $mode;
|
||||||
|
|||||||
Reference in New Issue
Block a user