On Wed, Feb 6, 2013 at 1:30 PM, Erik Rose <[email protected]> wrote:

> > I'm working off the testing branch, pulled yesterday, and when I try to
> > build it complains and tells me that there is no "depend" target.
>  That's a
> > lie, of course, because I use the depend target often in my make system,
> so
> > obviously dxr-build is not finding the makefile properly.
>
> If this does turn out to be a dxr bug, let's add a regression test when we
> fix it. I want to start battening down the test situation so we can change
> things without breaking them.
>

Some old-fashioned printf-style debugging finds that the cwd at the point
where the 'build_command' subprocess gets called is whatever directory you
were in when you ran the script.  I would expect that it would be run in
the source_folder.

However, looking at the args passed to subprocess.call(), I see that, in
fact, the cwd= arg is set to 'tree.object_folder'--and *has been* since the
beginning of the branch.  I don't know how this worked for me previously.

Why is the cwd set to the object_folder rather than source_folder?  To test
things out, I've changed subprocess.call() to have cwd=tree.source_folder
and I'll see how things go.


-- 
Chris Cleeland
_______________________________________________
dev-static-analysis mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-static-analysis

Reply via email to