Skip to content

Commit a44dc0a

Browse files
authored
cd later
1 parent 6962d24 commit a44dc0a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/SPC/util/executor/UnixCMakeExecutor.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ public function build(string $build_pos = '..'): void
4545
FileSystem::resetDir($this->build_dir);
4646
}
4747

48+
$this->shell = $this->shell->cd($this->build_dir);
49+
4850
// config
4951
$this->steps >= 1 && $this->shell->exec("cmake {$this->getConfigureArgs()} {$this->getDefaultCMakeArgs()} {$build_pos}");
5052

@@ -227,6 +229,6 @@ private function makeCmakeToolchainFile(): string
227229

228230
private function initShell(): void
229231
{
230-
$this->shell = shell()->cd($this->build_dir)->initializeEnv($this->library);
232+
$this->shell = shell()->initializeEnv($this->library);
231233
}
232234
}

0 commit comments

Comments
 (0)