diff --git a/toolchain/toolchain-external/ext-toolchain-wrapper.c b/toolchain/toolchain-external/ext-toolchain-wrapper.c index 460f255ee5..befd735f11 100644 --- a/toolchain/toolchain-external/ext-toolchain-wrapper.c +++ b/toolchain/toolchain-external/ext-toolchain-wrapper.c @@ -136,6 +136,15 @@ int main(int argc, char **argv) /* finish with NULL termination */ *cur = NULL; + if (getenv("BR_DEBUG_WRAPPER")) { + fprintf(stderr, "Executing"); + + for (i = 0; args[i]; i++) + fprintf(stderr, " %s", args[i]); + + fprintf(stderr, "\n"); + } + if (execv(path, args)) perror(path);