Fix UnixCMakeExecutor.php

This commit is contained in:
crazywhalecc 2025-06-09 01:15:48 +08:00
parent 1cf2a3dd3f
commit 37b9ccfaa8
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

View File

@ -71,7 +71,7 @@ class UnixCMakeExecutor extends Executor
*/
public function addConfigureArgs(...$args): static
{
$this->configure_args = [$this->configure_args, ...$args];
$this->configure_args = [...$this->configure_args, ...$args];
return $this;
}
@ -123,7 +123,6 @@ class UnixCMakeExecutor extends Executor
'-DCMAKE_INSTALL_INCLUDE_DIR=include',
'-DBUILD_SHARED_LIBS=OFF',
"-DCMAKE_TOOLCHAIN_FILE={$this->makeCmakeToolchainFile()}",
'..',
]);
}