> If building a project with GHDL that will be embedded within another
> program via ghdl_main, it seems that there is no equivalent of `ghdl
> -m` that automatically analyzes dependencies.
> 
> Right now I'm using:
> 
>     ghdl -m $(GHDLFLAGS) toplevel_tb || true
>     ghdl --bind $(GHDLFLAGS) toplevel_tb # not absolutely necessary,
> but catches errors that would have otherwise been ignored by above
> line
> 
> That runs -m as far as it will get (which isn't all the way, since my
> VHDL code has some FFI calls that aren't getting linked in) and then
> runs --bind for the sole purpose of knowing when ghdl -m failed for
> any other reason.
> 
> Is this functionality actually missing (automatic analysis of
> dependencies, but no linking, similar to --bind)? Am I just missing
> it?
> 
> If it is actually missing, I could potentially implement it. Maybe as
> additional option provided to the -m command? `--no-link`?

It should work, so you hit a bug.  Do you have a reproducer ?  If so,
please create a ticket and file it.

Thanks,
Tristan.

_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to