Replies: 2 comments 3 replies
-
You could also have the custom target just produce an empty file "stamp.h", and add it as a dependency to an ordinary executable to force the executable to be recompiled every time a random other file changes. Not saying this is the pinnacle of design, just a general way to force an executable into having an effective rebuild dependency on something else. No need to inline source code into a shell script, at least. That does overall seem like the best you can do at the moment since custom_target isn't currently accepted by override_find_program. (Hmm, why is that?) |
Beta Was this translation helpful? Give feedback.
-
ah, I was somehow thinking of the built tool run being the custom_target command for some reason, not that the tool is the output of custom_target itself. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a python script that depends on a cpython extension module built in meson in a subproject.
I'm looking if there is a canonical way of exposing that script via meson.override_find_program, as it only takes in
exe | file | external_program
, whichexe
being the only one that supports dependencies, but I can create an executable target for my python script.A really ugly hack that I've found was
with produce-run-wrapper being:
Beta Was this translation helpful? Give feedback.
All reactions