From fa9d7a30099c41d3f161a3fb043bd8408a5fd2e9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Sun, 6 Nov 2011 08:58:30 +0000 Subject: [PATCH] cli: Pass apitrace path to tracediff.sh. So that it works automatically from the build directory too. --- cli/cli_diff.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.45.2