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 30367d2
Showing 1 changed file with 7 additions and 2 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

0 comments on commit 30367d2

Please sign in to comment.