Skip to content

Commit abe2759

Browse files
committed
add cache file option to autoconf executor by default (if cflags and ldflags match default)
1 parent 5577cd0 commit abe2759

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/SPC/util/UnixShell.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ public function getEnvString(): string
117117
return trim($str);
118118
}
119119

120+
public function getEnv(): array
121+
{
122+
return $this->env;
123+
}
124+
120125
private function getExecString(string $cmd): string
121126
{
122127
logger()->debug('Executed at: ' . debug_backtrace()[0]['file'] . ':' . debug_backtrace()[0]['line']);
@@ -129,9 +134,4 @@ private function getExecString(string $cmd): string
129134
}
130135
return $cmd;
131136
}
132-
133-
public function getEnv(): array
134-
{
135-
return $this->env;
136-
}
137137
}

src/SPC/util/executor/UnixAutoconfExecutor.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function getConfigureArgsString(): string
5353
/**
5454
* Run make
5555
*
56-
* @param string $target Build target
56+
* @param string $target Build target
5757
* @throws RuntimeException
5858
*/
5959
public function make(string $target = '', false|string $with_install = 'install', bool $with_clean = true, array $after_env_vars = []): static
@@ -79,9 +79,9 @@ public function exec(string $cmd): static
7979
* Add optional library configuration.
8080
* This method checks if a library is available and adds the corresponding arguments to the CMake configuration.
8181
*
82-
* @param string $name library name to check
83-
* @param \Closure|string $true_args arguments to use if the library is available (allow closure, returns string)
84-
* @param string $false_args arguments to use if the library is not available
82+
* @param string $name library name to check
83+
* @param \Closure|string $true_args arguments to use if the library is available (allow closure, returns string)
84+
* @param string $false_args arguments to use if the library is not available
8585
* @return $this
8686
*/
8787
public function optionalLib(string $name, \Closure|string $true_args, string $false_args = ''): static

0 commit comments

Comments
 (0)