Skip to content

ghdl: copy sim_flags before appending generics - Fix #1223 - #1224

Open
prds-code wants to merge 1 commit into
VUnit:masterfrom
prds-code:upstream-issue-1223
Open

prds-code wants to merge 1 commit into
VUnit:masterfrom
prds-code:upstream-issue-1223

Conversation

@prds-code

Copy link
Copy Markdown

#1223 - Fix generics leak between configurations when ghdl.sim_flags is set

_get_command() extended the "ghdl.sim_flags" list stored in sim_options
in place. Configurations added after set_sim_option() share that list
(shallow Configuration.copy()), so it grew with the -g flags of every
simulation and a configuration inherited generics set by earlier ones
that it doesn't set itself. Parallel runs made this order dependent.
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