From df0ccdf2d7bd4822d8b841fa5e351c7fac538015 Mon Sep 17 00:00:00 2001 From: dzaima Date: Sun, 17 Sep 2023 13:39:12 +0300 Subject: [PATCH] add error message on missing posix_spawn support in `make for-build` --- src/builtins/sysfn.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/builtins/sysfn.c b/src/builtins/sysfn.c index d7d8f1a1..8e13d61f 100644 --- a/src/builtins/sysfn.c +++ b/src/builtins/sysfn.c @@ -1134,6 +1134,14 @@ B sh_c2(B t, B w, B x) { return m_hvec3(m_i32(code), s_outObj, s_errObj); } #else +#if FOR_BUILD + #if __ANDROID__ + #error " or other related includes for posix_spawnp are missing for the 'make for-build' build. If building within termux, use `pkg install libandroid-spawn && make for-build lf=-landroid-spawn && make lf=-landroid-spawn`" + #else + #error " or other related includes for posix_spawnp are missing for the 'make for-build' build" + #endif +#endif + #define HAS_SH 0 B sh_c2(B t, B w, B x) { thrM("•SH: CBQN was compiled without "); } #endif