Skip to content

Support SLANG_PLUGIN_PATH env var for custom slang plugin location#4131

Open
oharboe wants to merge 1 commit intoThe-OpenROAD-Project:masterfrom
oharboe:slang-plugin-path
Open

Support SLANG_PLUGIN_PATH env var for custom slang plugin location#4131
oharboe wants to merge 1 commit intoThe-OpenROAD-Project:masterfrom
oharboe:slang-plugin-path

Conversation

@oharboe
Copy link
Copy Markdown
Collaborator

@oharboe oharboe commented Apr 10, 2026

When SYNTH_HDL_FRONTEND=slang, the plugin load is hardcoded as plugin -i slang. This adds a check for SLANG_PLUGIN_PATH, falling back to the current behavior when unset.

This enables Bazel-built slang plugins to be loaded from a custom path, which is needed for downstream consumers that build yosys-slang from source.

When SYNTH_HDL_FRONTEND=slang, the plugin load is hardcoded as
`plugin -i slang`.  This adds a check for SLANG_PLUGIN_PATH,
falling back to the current behavior when unset.

This enables Bazel-built slang plugins to be loaded from a
custom path, which is needed for downstream consumers that
build yosys-slang from source.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
@oharboe oharboe requested a review from maliberty April 10, 2026 10:28
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.

1 participant