Skip to content

Commit b2c6823

Browse files
committed
Check example binary exists after compilation.
1 parent f9a3a14 commit b2c6823

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cmdstanpy/install_cmdstan.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,9 @@ def compile_example(verbose: bool = False) -> None:
363363
# pylint: disable=raise-missing-from
364364
raise CmdStanInstallError(f'Command "make clean-all" failed\n{e}')
365365

366+
if not path.is_file():
367+
raise CmdStanInstallError("Failed to generate example binary")
368+
366369

367370
def rebuild_cmdstan(
368371
verbose: bool = False, progress: bool = True, cores: int = 1

0 commit comments

Comments
 (0)