diff options
author | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2012-11-06 19:44:10 +0100 |
---|---|---|
committer | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2012-11-06 19:44:10 +0100 |
commit | 7606de02778209ef30bf13db23fe6f144fca2937 (patch) | |
tree | 970db9d19d48ec6f44ef2b2ec627bcdff2195d13 | |
parent | 8091566352c8128612fa49c3f7dcbf0309d4f3fc (diff) | |
download | native-toolchain-7606de02778209ef30bf13db23fe6f144fca2937.tar.gz |
native-toolchain/tc-wrapper: Make debugging optional
Don't clutter /tmp with all invocations of toolchain
components
Change-Id: I646ca764847e3227ef102b871ce21b88bfe0bbcc
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
-rw-r--r-- | tc-wrapper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tc-wrapper.c b/tc-wrapper.c index f714563..2955953 100644 --- a/tc-wrapper.c +++ b/tc-wrapper.c @@ -210,10 +210,12 @@ int main(int argc, char **argv) { } } new_argv[arg]=0; +#ifdef DEBUG FILE *f=fopen("/tmp/LOG", "a"); for(int i=0; i<arg; i++) fprintf(f, "%s ", new_argv[i]); fprintf(f, "\n\n"); fclose(f); +#endif execv(new_argv[0], new_argv); } |