Skip to content

Commit

Permalink
Do not try to print winmake.log (fails for some reason)
Browse files Browse the repository at this point in the history
  • Loading branch information
mstimberg committed Sep 2, 2024
1 parent 6fe72e0 commit 6f60168
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions brian2/devices/cpp_standalone/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -1174,12 +1174,7 @@ def compile_source(self, directory, compiler, debug, clean):
self.timers["compile"]["make"] = time.time() - start_time

if x != 0:
if os.path.exists("winmake.log"):
with open("winmake.log") as f:
print(f.read())
error_message = (
"Project compilation failed (error code: %u)." % x
)
error_message = f"Project compilation failed (error code: {x}), consider having a look at 'winmake.log'."
if not clean:
error_message += (
" Consider running with "
Expand Down

0 comments on commit 6f60168

Please sign in to comment.