From: José Fonseca Date: Sun, 6 Nov 2011 08:58:30 +0000 (+0000) Subject: cli: Pass apitrace path to tracediff.sh. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=fa9d7a30099c41d3f161a3fb043bd8408a5fd2e9;p=apitrace cli: Pass apitrace path to tracediff.sh. So that it works automatically from the build directory too. --- diff --git a/cli/cli_diff.cpp b/cli/cli_diff.cpp index a06e842..11399a1 100644 --- a/cli/cli_diff.cpp +++ b/cli/cli_diff.cpp @@ -96,6 +96,9 @@ command(int argc, char *argv[]) #ifdef _WIN32 std::cerr << "The 'apitrace diff' command is not yet supported on this O/S.\n"; #else + os::Path apitrace = os::getProcessName(); + setenv("APITRACE", apitrace.str(), 1); + execv(command.str(), args); #endif