diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-12-21 23:52:22 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-12-21 23:52:22 +0000 |
commit | b87c8d2eb4f0c7fb25cee10e8fdb2c8331343f8c (patch) | |
tree | dfd82e31b0da2e48482f00fb3061dfdcd61e7c9d /src/functiongetmakedeps.cpp | |
parent | 97c0fcbbef19012f825cba0fc3f16037322ce84c (diff) | |
download | build-b87c8d2eb4f0c7fb25cee10e8fdb2c8331343f8c.tar.gz build-b87c8d2eb4f0c7fb25cee10e8fdb2c8331343f8c.tar.bz2 build-b87c8d2eb4f0c7fb25cee10e8fdb2c8331343f8c.tar.xz build-b87c8d2eb4f0c7fb25cee10e8fdb2c8331343f8c.zip |
Wow, that was aweful. There was a horrible problem with rule generated targets
not getting the variables from the parent target.
Diffstat (limited to 'src/functiongetmakedeps.cpp')
-rw-r--r-- | src/functiongetmakedeps.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/functiongetmakedeps.cpp b/src/functiongetmakedeps.cpp index 1aded15..008a509 100644 --- a/src/functiongetmakedeps.cpp +++ b/src/functiongetmakedeps.cpp | |||
@@ -1,4 +1,6 @@ | |||
1 | #include "functiongetmakedeps.h" | 1 | #include "functiongetmakedeps.h" |
2 | #include "context.h" | ||
3 | #include "view.h" | ||
2 | 4 | ||
3 | #include <bu/process.h> | 5 | #include <bu/process.h> |
4 | #include <bu/sio.h> | 6 | #include <bu/sio.h> |
@@ -19,6 +21,7 @@ Bu::FString FunctionGetMakeDeps::getName() const | |||
19 | 21 | ||
20 | Variable FunctionGetMakeDeps::call( Variable &/*input*/, VarList lParams ) | 22 | Variable FunctionGetMakeDeps::call( Variable &/*input*/, VarList lParams ) |
21 | { | 23 | { |
24 | pContext->getView()->cmdStarted( lParams.first().getString().getStr() ); | ||
22 | Process p( Process::StdOut, "/bin/bash", "/bin/bash", "-c", | 25 | Process p( Process::StdOut, "/bin/bash", "/bin/bash", "-c", |
23 | lParams.first().getString().getStr(), NULL ); | 26 | lParams.first().getString().getStr(), NULL ); |
24 | 27 | ||
@@ -31,6 +34,8 @@ Variable FunctionGetMakeDeps::call( Variable &/*input*/, VarList lParams ) | |||
31 | sBuf.append( buf, iRead ); | 34 | sBuf.append( buf, iRead ); |
32 | } | 35 | } |
33 | 36 | ||
37 | pContext->getView()->cmdFinished( "", "", p.childExitStatus() ); | ||
38 | |||
34 | Variable vRet( Variable::typeList ); | 39 | Variable vRet( Variable::typeList ); |
35 | 40 | ||
36 | Bu::FString::iterator i, j; | 41 | Bu::FString::iterator i, j; |