]> git.cworth.org Git - apitrace/blobdiff - cli/cli_diff.cpp
cli: Pass apitrace path to tracediff.sh.
[apitrace] / 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