Rename initBuildEnv to initializeEnv

This commit is contained in:
crazywhalecc
2025-06-09 11:12:34 +08:00
parent 123cc92756
commit 0558d67240
28 changed files with 28 additions and 28 deletions

View File

@@ -64,7 +64,7 @@ class UnixShell
*
* @param BSDLibraryBase|LinuxLibraryBase|MacOSLibraryBase $library Library class
*/
public function initLibBuildEnv(BSDLibraryBase|LinuxLibraryBase|MacOSLibraryBase $library): UnixShell
public function initializeEnv(BSDLibraryBase|LinuxLibraryBase|MacOSLibraryBase $library): UnixShell
{
$this->setEnv([
'CFLAGS' => $library->getLibExtraCFlags(),

View File

@@ -34,7 +34,7 @@ class UnixCMakeExecutor extends Executor
}
// prepare shell
$shell = shell()->cd($this->build_dir)->initLibBuildEnv($this->library);
$shell = shell()->cd($this->build_dir)->initializeEnv($this->library);
// config
$this->steps >= 1 && $shell->exec("cmake {$this->getConfigureArgs()} {$this->getDefaultCMakeArgs()} {$build_pos}");