Skip to content

flow: scripts: variables: Fix KEPLER_FORMAL_EXE export - #3937

Merged
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
dnltz:WIP/dnltz/fix-kepler-format-exe
Feb 28, 2026
Merged

maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
dnltz:WIP/dnltz/fix-kepler-format-exe

Conversation

@dnltz

@dnltz dnltz commented Feb 27, 2026

Copy link
Copy Markdown
Contributor

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.

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 <dnltz@aesc-silicon.de>
@maliberty
maliberty merged commit 0587ae6 into The-OpenROAD-Project:master Feb 28, 2026
5 checks passed
@Kimplul

Kimplul commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

Sorry to necrobump, but in what context does the default win over user-provided values? I can't replicate, make KEPLER_FORMAL_EXE=whatever picks up whatever as I would expect it to.

@maliberty

Copy link
Copy Markdown
Member

We use ?= for default assignment and it should follow the normal rules of make.

@Kimplul

Kimplul commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

Yes, if KEPLER_FORMAL_EXE is not defined as an environment variable or passed via the command line to make, then the default value is used, otherwise the user-provided value is used, as expected. I'm more confused about how the latter re-definition with := would affect whether the default or user-provided value is used and what problem is solved by removing it in this case. ?= followed by := is a pattern to make the default value immediately expanded instead of it being deferred, which is semantically meaningful but not in a way that is described in the commit message, AFAICT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants