Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Commit

Permalink
CxxsimTask: throw on non-zero rc.
Browse files Browse the repository at this point in the history
  • Loading branch information
kivikakk committed May 16, 2024
1 parent 5517ce3 commit 7e48267
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/scala/ee/hrzn/chryse/tasks/CxxsimTask.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package ee.hrzn.chryse.tasks
import chisel3._
import circt.stage.ChiselStage
import ee.hrzn.chryse.ChryseAppConfig
import ee.hrzn.chryse.ChryseAppStepFailureException
import ee.hrzn.chryse.HasIO
import ee.hrzn.chryse.platform.Platform
import ee.hrzn.chryse.platform.cxxrtl.BlackBoxGenerator
Expand Down Expand Up @@ -146,6 +147,9 @@ object CxxsimTask extends BaseTask {
val rc = binCmd.!

println(s"$name exited with return code $rc")
if (rc != 0) {
throw new ChryseAppStepFailureException("rc non-zero")
}
}

private def filesInDirWithExt(dir: String, ext: String): Iterator[String] =
Expand Down

0 comments on commit 7e48267

Please sign in to comment.