You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building a C library, one of the installed files is 'crt0.o'. I didn't find a direct build target to construct this, but did manage to hack up executable() to work for now by adding flags to the link and compile arguments.
What I think would work is an 'objectfile' target which just took a single source file, along with
the usual compiler and install parameters.
For reference, here's how I'm calling executable for my use:
Granted this may get a bit tricky if you have a lot of include dirs. An alternative approach is to build the target as a static library and then create a custom install script that installs the object file from the private directory.
And since you seem to be doing partial linking, you might be interested in #5499. Comments welcome.
I'm building a C library, one of the installed files is 'crt0.o'. I didn't find a direct build target to construct this, but did manage to hack up executable() to work for now by adding flags to the link and compile arguments.
What I think would work is an 'objectfile' target which just took a single source file, along with
the usual compiler and install parameters.
For reference, here's how I'm calling executable for my use:
The text was updated successfully, but these errors were encountered: