.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.
yann@1
     1
<?xml version="1.0" encoding="UTF-8"?>
yann@1
     2
<projectDescription>
yann@1
     3
	<name>crosstool-ng</name>
yann@1
     4
	<comment></comment>
yann@1
     5
	<projects>
yann@1
     6
	</projects>
yann@1
     7
	<buildSpec>
yann@1
     8
		<buildCommand>
yann@1
     9
			<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
yann@1
    10
			<triggers>full,incremental,</triggers>
yann@1
    11
			<arguments>
yann@1
    12
				<dictionary>
yann@1
    13
					<key>LaunchConfigHandle</key>
yann@1
    14
					<value>&lt;project&gt;/.externalToolBuilders/org.eclipse.cdt.make.core.makeBuilder.launch</value>
yann@1
    15
				</dictionary>
yann@1
    16
			</arguments>
yann@1
    17
		</buildCommand>
yann@1
    18
		<buildCommand>
yann@1
    19
			<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
yann@1
    20
			<triggers>full,incremental,</triggers>
yann@1
    21
			<arguments>
yann@1
    22
				<dictionary>
yann@1
    23
					<key>LaunchConfigHandle</key>
yann@1
    24
					<value>&lt;project&gt;/.externalToolBuilders/org.eclipse.cdt.make.core.ScannerConfigBuilder.launch</value>
yann@1
    25
				</dictionary>
yann@1
    26
			</arguments>
yann@1
    27
		</buildCommand>
yann@1
    28
	</buildSpec>
yann@1
    29
	<natures>
yann@1
    30
		<nature>org.eclipse.cdt.core.cnature</nature>
yann@1
    31
		<nature>org.eclipse.cdt.make.core.makeNature</nature>
yann@1
    32
		<nature>org.eclipse.cdt.make.core.ScannerConfigNature</nature>
yann@1
    33
	</natures>
yann@1
    34
</projectDescription>