Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Lavin <[email protected]>
  • Loading branch information
clavin-xlnx committed Jan 14, 2025
1 parent 3541b4a commit d0de657
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/com/xilinx/rapidwright/util/VivadoTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ public static List<String> runTcl(Path outputLog, Path tclScript, boolean verbos
final String vivadoCmd = FileTools.getVivadoPath() + " -log " + outputLog.toString() + " -nojournal -mode batch -source "
+ tclScript.toString();
Integer exitCode = FileTools.runCommand(vivadoCmd, verbose, environ, runDir);
if (Files.exists(outputLog)) {
for (String l : FileTools.getLinesFromTextFile(outputLog.toString())) {
System.out.println("VIVADO OUTPUT> " + l);
}
}
if (exitCode != 0) {
if (Files.exists(outputLog)) {
for (String l : FileTools.getLinesFromTextFile(outputLog.toString())) {
System.out.println("FAILED OUTPUT> " + l);
}
}
throw new RuntimeException("Vivado exited with code: " + exitCode);
}
return FileTools.getLinesFromTextFile(outputLog.toString());
Expand Down

0 comments on commit d0de657

Please sign in to comment.