From bf8e84942c0621f3bd241ed736da27da81c9fb45 Mon Sep 17 00:00:00 2001 From: Daniel Schultz Date: Fri, 27 Feb 2026 19:32:39 +0100 Subject: [PATCH] flow: scripts: variables: Fix KEPLER_FORMAL_EXE export Fix KEPLER_FORMAL_EXE export overriding user assignments 'export VAR := $(VAR)' re-assigns the variable with simple expansion, causing the ?= default to always win over user-provided values. Change to plain 'export' to only mark it for export without reassigning. Signed-off-by: Daniel Schultz --- flow/scripts/variables.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow/scripts/variables.mk b/flow/scripts/variables.mk index de6d038561..d6f0712079 100644 --- a/flow/scripts/variables.mk +++ b/flow/scripts/variables.mk @@ -118,7 +118,7 @@ KLAYOUT_DIR = $(abspath $(FLOW_HOME)/../tools/install/klayout/) KLAYOUT_BIN_FROM_DIR = $(KLAYOUT_DIR)/klayout KEPLER_FORMAL_EXE ?= $(abspath $(FLOW_HOME)/../tools/install/kepler-formal/bin/kepler-formal) -export KEPLER_FORMAL_EXE := $(KEPLER_FORMAL_EXE) +export KEPLER_FORMAL_EXE ifeq ($(wildcard $(KLAYOUT_BIN_FROM_DIR)), $(KLAYOUT_BIN_FROM_DIR)) export KLAYOUT_CMD ?= sh -c 'LD_LIBRARY_PATH=$(dir $(KLAYOUT_BIN_FROM_DIR)) $$0 "$$@"' $(KLAYOUT_BIN_FROM_DIR)