Skip to content

Commit

Permalink
Check for build artefacts after compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
vadim0x60 committed Nov 22, 2023
1 parent feb0ccc commit e973e59
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions programlib/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,13 @@ def __init__(self, source=None, name=None, language='C++',

self.stdout, self.exitstatus = self.language.build(self.name)

# Please send your opinions on 'not not' vs 'bool()' to [email protected]
self.compile_error = not not self.exitstatus
# Please send your opinions on 'not not' vs 'bool()' to [email protected]
self.compile_error = not not self.exitstatus

for artefact in self.language.artefacts:
# Compiler returned exit status zero, but a build artefact is missing
if not Path(artefact.format(name=self.name)).exists():
self.compile_error = True

def __lt__(self, other):
return self.name < other.name
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "programlib"
version = "9.0.0"
version = "9.0.1"
description = "Programs as Objects"
authors = ["Vadim Liventsev <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit e973e59

Please sign in to comment.