You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 4, 2020. It is now read-only.
I am trying to run clcache with Visual Studio 2010.
I have tried putting it inthe PATH of my user, of the whole system and even replacing my cl.exe with this launcher and speicyfing CLCACHE_CL to the correct compiler (renamed to cl.real.exe). My code let me specify where to find clcache.py, plus I am having problems with py2exe and my windows is x86_64.
#include <string>
#include <stdlib.h>
int main( int argc, char* argv[] )
{
// Checking standard variables
char *CLCACHE_PATH = getenv("CLCACHE_PATH");
std::string cmd = "python ";
if (CLCACHE_PATH)
{
cmd += CLCACHE_PATH;
cmd += '/';
}
cmd += "clcache.py ";
for ( int i = 1; i < argc; ++i )
{
cmd += ' ';
cmd += argv[i];
}
return system(cmd.c_str());
}
with the PATH modifications it wasn't being called, with this launcher I can manage to make it work if I manually call it, but visual studio will return me
The system cannot execute the specified program.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(62,5): error MSB6006: "CL.exe" exited with code 1.
How can I setup Visual Studio 2010 to actually use clcache?
I am trying to run clcache with Visual Studio 2010.
I have tried putting it inthe PATH of my user, of the whole system and even replacing my cl.exe with this launcher and speicyfing CLCACHE_CL to the correct compiler (renamed to cl.real.exe). My code let me specify where to find clcache.py, plus I am having problems with py2exe and my windows is x86_64.
In the current setup I have these variable set
with the PATH modifications it wasn't being called, with this launcher I can manage to make it work if I manually call it, but visual studio will return me
How can I setup Visual Studio 2010 to actually use clcache?