mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-07 16:55:38 +08:00
Add autoconf executor
This commit is contained in:
@@ -216,3 +216,8 @@ function cmake_boolean_args(string $arg_name, bool $negative = false): array
|
||||
$res = ["-D{$arg_name}=ON", "-D{$arg_name}=OFF"];
|
||||
return $negative ? array_reverse($res) : $res;
|
||||
}
|
||||
|
||||
function ac_with_args(string $arg_name, bool $use_value = false): array
|
||||
{
|
||||
return $use_value ? ["--with-{$arg_name}=yes", "--with-{$arg_name}=no"] : ["--with-{$arg_name}", "--without-{$arg_name}"];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user