aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/make.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/miscutils/make.c b/miscutils/make.c
index 87f17aad7..970919ddc 100644
--- a/miscutils/make.c
+++ b/miscutils/make.c
@@ -2217,7 +2217,7 @@ docmds(struct name *np, struct cmd *cp)
2217 if (sdomake) { 2217 if (sdomake) {
2218 // Get the shell to execute it 2218 // Get the shell to execute it
2219 int status; 2219 int status;
2220 char *cmd = !signore ? auto_concat("set -e;", q) : q; 2220 char *cmd = !signore && posix ? auto_concat("set -e;", q) : q;
2221 2221
2222 target = np; 2222 target = np;
2223 status = system(cmd); 2223 status = system(cmd);
@@ -2233,7 +2233,6 @@ docmds(struct name *np, struct cmd *cp)
2233 diagnostic("failed to build '%s'", np->n_name); 2233 diagnostic("failed to build '%s'", np->n_name);
2234 estat |= MAKE_FAILURE; 2234 estat |= MAKE_FAILURE;
2235 free(command); 2235 free(command);
2236 free(cmd);
2237 break; 2236 break;
2238 } else if (doinclude) { 2237 } else if (doinclude) {
2239 warning("failed to build '%s'", np->n_name); 2238 warning("failed to build '%s'", np->n_name);