Skip to content

Commit 1730016

Browse files
committed
makefile: avoid 6_report.log being written when that step fails
this avoids a situation where if you run finish twice, and it fails the first time, it succeeds the second time. Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 8bd26c0 commit 1730016

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flow/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,8 @@ $(if $(5),$(5),$(RESULTS_DIR))/$(1)$(if $(4),$(4),.odb): $(2)
475475

476476
.PHONY: do-$(1)
477477
do-$(1):
478-
($(TIME_CMD) $(OPENROAD_CMD) $(SCRIPTS_DIR)/$(3).tcl -metrics $(LOG_DIR)/$(1).json) 2>&1 | tee $(LOG_DIR)/$(1).log
478+
{ $(TIME_CMD) $(OPENROAD_CMD) $(SCRIPTS_DIR)/$(3).tcl -metrics $(LOG_DIR)/$(1).json && cp $(LOG_DIR)/$(1).tmp.log $(LOG_DIR)/$(1).log; } 2>&1 | tee $(LOG_DIR)/$(1).tmp.log
479+
rm -f $(LOG_DIR)/$(1).tmp.log
479480
endef
480481

481482
# generate make rules to copy a file, if a dependency change and

0 commit comments

Comments
 (0)