From 14992513a3f9b5391fc5a360322944d223f666f3 Mon Sep 17 00:00:00 2001 From: ctkiku Date: Thu, 1 Oct 2026 12:04:18 +0300 Subject: [PATCH] make: defer expansion of OPENROAD_*_CMD With a single $, the variables are immediately expanded in $(eval), which means modifications done in util/utils.mk, such as prefixing with gdb or valgrind, don't take effect. Use $$ instead, which causes the expansion to happen when the `open_*/gui_*/web_*` rules are actually triggered instead of when they're generated. Signed-off-by: ctkiku --- flow/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flow/Makefile b/flow/Makefile index b331a691cd..465b8db669 100644 --- a/flow/Makefile +++ b/flow/Makefile @@ -357,11 +357,11 @@ endef define OPEN_GUI .PHONY: open_$(1) gui_$(1) web_$(1) open_$(1): - $(2)=$(RESULTS_DIR)/$(1) $(OPENROAD_NO_EXIT_CMD) $(SCRIPTS_DIR)/open.tcl + $(2)=$(RESULTS_DIR)/$(1) $$(OPENROAD_NO_EXIT_CMD) $(SCRIPTS_DIR)/open.tcl gui_$(1): - $(2)=$(RESULTS_DIR)/$(1) $(OPENROAD_GUI_CMD) $(SCRIPTS_DIR)/open.tcl + $(2)=$(RESULTS_DIR)/$(1) $$(OPENROAD_GUI_CMD) $(SCRIPTS_DIR)/open.tcl web_$(1): - $(2)=$(RESULTS_DIR)/$(1) $(OPENROAD_WEB_CMD) $(SCRIPTS_DIR)/open.tcl + $(2)=$(RESULTS_DIR)/$(1) $$(OPENROAD_WEB_CMD) $(SCRIPTS_DIR)/open.tcl endef # Enables "make gui_5_1_grt-failed"