Skip to content

Commit 57a94a0

Browse files
authored
Merge pull request #1369 from Pinata-Consulting/makefile-fix-finish-false-negative
makefile: avoid 6_report.log being written when that step fails
2 parents 9a70065 + ab46c01 commit 57a94a0

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) 2>&1 | tee $(LOG_DIR)/$(1).tmp.log
479+
mv $(LOG_DIR)/$(1).tmp.log $(LOG_DIR)/$(1).log
479480
endef
480481

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

0 commit comments

Comments
 (0)