.project
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun May 20 13:48:26 2007 +0000 (2007-05-20)
changeset 112 ea15433daba0
permissions -rw-r--r--
Ah! I finally have a progress bar that doesn't stall the build!
- pipe size in Linux is only 8*512=4096 bytes
- pipe size is not setable
- when the feeding process spits out data faster than the eating
process can read it, then the feeding process stalls after 4KiB
of data sent to the pipe
- for us, the progress bar would spawn a sub-shell every line,
and the sub-shell would in turn spawn a 'date' command.
Which was sloooww as hell, and would cause some kind of a
starvation: the pipe was full most of the time, and the
feeding process was stalled all this time.

Now, we use internal variables and a little hack based onan offset
to determine the elapsed time. Much faster this way, but still
CPU-intensive.
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <projectDescription>
     3 	<name>crosstool-ng</name>
     4 	<comment></comment>
     5 	<projects>
     6 	</projects>
     7 	<buildSpec>
     8 		<buildCommand>
     9 			<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
    10 			<triggers>full,incremental,</triggers>
    11 			<arguments>
    12 				<dictionary>
    13 					<key>LaunchConfigHandle</key>
    14 					<value>&lt;project&gt;/.externalToolBuilders/org.eclipse.cdt.make.core.makeBuilder.launch</value>
    15 				</dictionary>
    16 			</arguments>
    17 		</buildCommand>
    18 		<buildCommand>
    19 			<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
    20 			<triggers>full,incremental,</triggers>
    21 			<arguments>
    22 				<dictionary>
    23 					<key>LaunchConfigHandle</key>
    24 					<value>&lt;project&gt;/.externalToolBuilders/org.eclipse.cdt.make.core.ScannerConfigBuilder.launch</value>
    25 				</dictionary>
    26 			</arguments>
    27 		</buildCommand>
    28 	</buildSpec>
    29 	<natures>
    30 		<nature>org.eclipse.cdt.core.cnature</nature>
    31 		<nature>org.eclipse.cdt.make.core.makeNature</nature>
    32 		<nature>org.eclipse.cdt.make.core.ScannerConfigNature</nature>
    33 	</natures>
    34 </projectDescription>