bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #41246] Allow to switch shell batch mode at runtimeinstead of b


From: Gisle Vanem
Subject: Re: [bug #41246] Allow to switch shell batch mode at runtimeinstead of build time
Date: Sun, 2 Mar 2014 17:28:41 +0100

"Paul Smith" <address@hidden> wrote:

HOWEVER.  I don't know nearly enough about all the variations and
different possibilities on Windows to make sound judgements on the
specific situation, so if Eli is OK with it then I'm OK with it.

If it's the value of 'batch_mode_shell' we speak of, it can easily be
changed by the new "load" feature. This diff:

--- Git-Latest/makeint.h     2014-02-09 15:03:22 +0000
+++ makeint.h   2014-03-02 17:10:53 +0000
@@ -593,7 +593,7 @@
extern int rebuilding_makefiles, one_shell, output_sync, verify_flag;

/* can we run commands via 'sh -c xxx' or must we use batch files? */
-extern int batch_mode_shell;
+extern GMK_EXPORT int batch_mode_shell;

---

and a small mk_test.dll shows it's possible to force this to 1 irrespective of
'BATCH_MODE_ONLY_SHELL' is defined on build time or not.
With a .def-file there would be no need to patch anything. The OP could
export other stuff and extend gnumake to his liking.

--gv








reply via email to

[Prev in Thread] Current Thread [Next in Thread]