-
Notifications
You must be signed in to change notification settings - Fork 83
Visual Studio 2010 #18
Comments
What I've found works is this: rename cl.exe to cl_real.exe then set CLCACHE_CL to the full path to cl_real.exe Whatever you do, make sure that the real compiler's .config file is appropriately named |
I already renamed the configuration file correctly.. I tried now switching from cl.real.exe to cl_real.exe .. but it doesn't work yet, I still have the same issue |
Your cl.exe is the generated py2exe file? |
Ok, I managed to install python 32bit and py2exe 32 bit and it's being called. Unfortunately I am getting these erors 1>c:\sources\development\main\testmain.cpp : fatal error C1033: cannot open program database 'c:\sources\development\main\testmain"debug\vc100.pdb"' and 2>cl : Command line warning D9028: minimal rebuild failure, reverting to normal build |
Ah right, AIUI, clcache doens't support pre-compiled headers or external pdb files, but it should handle it more cleanly. what do you see if you build your project under msbuild? |
I can't test it right now. I will see on Monday :-)
|
Sorry I was currently busy :) |
I was also having problems with py2exe, so I now use the following clcache.bat as my CXX
Can this be closed? I guess it is getting too wide now. |
It's apparently not too easy to make Visual Studio pick up clcache. I don't use the IDE myself, but others described that replacing the original binary works. So let's at least mention this approach. Resolves #18.
@frerich I think your instructions are needlessly complicated for integration with visual studio. <PropertyGroup>
<CLToolExe>clcache.exe</CLToolExe>
<CLToolPath>C:\ProgramData\chocolatey\bin\</CLToolPath>
<TrackFileAccess>false</TrackFileAccess>
</PropertyGroup> In you project file. |
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?
The text was updated successfully, but these errors were encountered: