-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Output path for artifacts generated by ghdl --bind #781
Comments
A little update: |
So a possible enhancement is to add a new option to list-link to specify path/name
|
Yes. But Currently, I think it should be Or, even better, What do you think? |
Coming from gitter:
The point is that I am not creating any executable with GHDL; instead, I am building objects that will be later built in a third-party tool:
ghdl -a --workdir=build/obj ...
ghdl --bind --workdir=build/obj ...
ghdl --list-list ...
and save it to alist_file.txt
.list_file.txt
in a tarball.Then:
ghdl_main
.gcc <app-specific args> -o build/bin/app $(cat lis_file.txt)
(or the equivalent with g++/cmake).As you see, the executable is generated in the very last step, and I can locate it wherever with option
-o
. However, in the steps above I am left with objects generated by GHDL in various locations (which are all different from where the target binary is located):/usr/local/lib
.--workdir
../
whereghdl --bind
was executed.Ideally,
ghdl --bind
would generate any object except executable binaries in--workdir
.Overall, it seems that the safest approach ATM is to avoid
--workdir
at all. I.e.,cd
tobuild/obj
and executeghdl -a
,ghdl --bind
andghdl --list-link
there; as using--workdir
is not useful at avoiding the requirement tocd
later.Should we add a comment at https://ghdl.readthedocs.io/en/latest/references/CommandReference.html#bind-bind or https://ghdl.readthedocs.io/en/latest/references/ImplementationOfVHDL.html#linking-with-ada?
BTW, I am thinking about renaming section 'Linking with Ada' to 'Linking with Ada or C', since the process is the same for both.
The text was updated successfully, but these errors were encountered: