[Scons-users] Problems with SCons parallel build

Gary Oberbrunner garyo at oberbrunner.com
Fri Mar 21 17:04:52 EDT 2014


On Fri, Mar 21, 2014 at 5:00 PM, Brady Johnson
<bradyallenjohnson at gmail.com> wrote:

> Gary,

>

> Ya, I was just about to reply saying that the thrift file is used for code

> gen, but its not generated, it exists when the build starts.


In that case, I'd print out exactly what it's failing to open on that
line of your emitter. It's unlikely SCons is deleting files, though
it does delete targets just before it makes them.

My money's on Dirk's idea -- it's related to your variant dir somehow,
not sure how yet.


> Dirk,

>

> I just checked and there are builders that do "cd" via the Command()

> builder. I'll look at them to see if what they are doing (its something like

> this: "cd /some/dir ; jar xvf /some/file") can be done without the "cd", but

> if not is there a way around this?


"cd" in a command is OK, since that runs in a subprocess. But a
python chdir() would be very bad, since the whole process has only one
current dir, so you're changing it for all threads if you do that.

--
Gary


More information about the Scons-users mailing list