Providing a file
or custom_target
to link_args
#12445
mitchgrout
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the embedded space it is pretty common to have a linker-script file that is used when generating the final executable. For example, this might be stored as
target.ld
. It would be convenient to be able to write the following code:as otherwise providing the raw
target.ld
argument fails due to it not being present in the build directory.You can currently get around this limitation by replacing
target
withbut that feels antithetical to all of mesons design choices. At a glance this also looks like it should work:
however since
fs.copyfile
returns acustom_target
, this will effectively preventtarget.ld
from ever being copied, and will cause the linker to fail complaining thattarget.ld
is not found.Beta Was this translation helpful? Give feedback.
All reactions