What happens if the command of a custom_target fails?

14 views
Skip to first unread message

Warren Weckesser

unread,
Sep 3, 2023, 7:41:21 PM9/3/23
to The Meson Build System
I'm trying to use meson and ninja (with meson-python) to implement a build system for a Python module that has a lot of extension modules.  I ran into a case where I thought the command of a custom_target should have failed, but the build completes with no errors reported (but the extension modules are not built correctly).  My question now is just a sanity check: what should happen when the command of a custom_target fails?  I'm on Linux, so "'fail" in this case means a nonzero return code from the executable.

Thanks.

Warren

Warren Weckesser

unread,
Sep 3, 2023, 8:52:32 PM9/3/23
to The Meson Build System
On Sun, Sep 3, 2023 at 7:41 PM Warren Weckesser <warren.w...@gmail.com> wrote:
I'm trying to use meson and ninja (with meson-python) to implement a build system for a Python module that has a lot of extension modules.  I ran into a case where I thought the command of a custom_target should have failed, but the build completes with no errors reported (but the extension modules are not built correctly).  My question now is just a sanity check: what should happen when the command of a custom_target fails?  I'm on Linux, so "'fail" in this case means a nonzero return code from the executable.


Never mind.  I had a several things wrong, and the custom_target command was never running.

Warren

 
Thanks.

Warren

--
You received this message because you are subscribed to a topic in the Google Groups "The Meson Build System" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mesonbuild/LhHq37hWy9A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mesonbuild+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/mesonbuild/234d93c7-d92b-4091-abe0-bcc3397eb7bfn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages