]> git.cworth.org Git - apitrace/commitdiff
cli: Pass apitrace path to tracediff.sh.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Sun, 6 Nov 2011 08:58:30 +0000 (08:58 +0000)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Sun, 6 Nov 2011 08:58:30 +0000 (08:58 +0000)
So that it works automatically from the build directory too.

cli/cli_diff.cpp

index a06e8422c4de33eaacefcb8561cc455fe05b6068..11399a16b4c191f07c0372470b3a359ae2bfe6bb 100644 (file)
@@ -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