On Fri, Oct 2, 2009 at 5:52 PM, Francis Galiegue <[email protected]> wrote:
> On Fri, Oct 2, 2009 at 5:41 PM, kyle cavin <[email protected]> wrote:
>> On Fri, Oct 2, 2009 at 11:25 AM, Francis Galiegue <[email protected]>
>> wrote:
>>>
> [...]
>>
>> What about reading a MAKEOPTS environment variable? This keeps things
>> flexible, and would integrate well with source based distributions.
>>
>
> This would be another solution, admittedly. I'll make a patch with that, too.
>
Here it is. Tested, compiled and run with. It takes 10 minutes to
compile everything with this patch and MAKEOPTS set to -j4, as opposed
to nearly 40 before. Patch is on top of my 4.5.2 branch, will make a
merge request for it as well on a "make-j" branch.
----
diff --git a/com/trolltech/tools/ant/MakeTask.java
b/com/trolltech/tools/ant/MakeTask.java
index fe8af55..0539068 100755
--- a/com/trolltech/tools/ant/MakeTask.java
+++ b/com/trolltech/tools/ant/MakeTask.java
@@ -78,6 +78,14 @@ public class MakeTask extends Task {
if (silent && OSInfo.os() != OSInfo.OS.Windows)
arguments += " -s";
+ try {
+ arguments += " " + System.getenv("MAKEOPTS");
+ } catch (SecurityException e) {
+ System.err.println("Cannot read system properties! Hope
it's OK...");
+ } catch (NullPointerException e) {
+ // Cannot happen
+ }
+
String command = compilerName() + arguments + " " + target;
Util.exec(command, new File(dir));
}
----
--
Francis Galiegue, [email protected]
"It seems obvious [...] that at least some 'business intelligence'
tools invest so much intelligence on the business side that they have
nothing left for generating SQL queries" (Stéphane Faroult, in "The
Art of SQL", ISBN 0-596-00894-5)
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest