Comments (9)
What I've found works is this:
rename cl.exe to cl_real.exe
rename cl.exe.config to cl_real.exe.config
copy clcache.exe to cl.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
from clcache.
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
from clcache.
Your cl.exe is the generated py2exe file?
from clcache.
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
2> stdafx.cpp
2>c1xx : fatal error C1083: Cannot open compiler intermediate file: '"C:\sources\Development\Main\Report\Debug\Win32\ReporD.pch"': Invalid argument
from clcache.
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?
from clcache.
I can't test it right now. I will see on Monday :-)
Thanks for the support.
Il 16/ott/2013 17:37 "Ian Norton" [email protected] ha scritto:
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?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/18#issuecomment-26429259
.
from clcache.
Sorry I was currently busy :)
Anyhow, I wrote a pull request to ignore /Yu and /Yc and remove them from
the command line.
I still have the issue of the .pdb file though
from clcache.
I was also having problems with py2exe, so I now use the following clcache.bat as my CXX
@echo off
@setlocal
set CLCACHE_HARDLINK=1
set CLCACHE_NODIRECT=1
python.exe C:\Users\myuser\clcache-bin\clcache.py %*
Can this be closed? I guess it is getting too wide now.
from clcache.
@frerich I think your instructions are needlessly complicated for integration with visual studio.
You just have to integrate
<PropertyGroup>
<CLToolExe>clcache.exe</CLToolExe>
<CLToolPath>C:\ProgramData\chocolatey\bin\</CLToolPath>
<TrackFileAccess>false</TrackFileAccess>
</PropertyGroup>
In you project file.
from clcache.
Related Issues (20)
- Error installing latest on Windows 10 HOT 5
- Renaming build directory cause cache misses HOT 2
- Clcache performance issues with big projects HOT 5
- What does "passed for external debug" mean? HOT 1
- Syntax error (printTraceStatement) running on Windows 10 HOT 2
- Please state that python 2 is no-longer supported in the readme.
- Autoclean feature documentation HOT 2
- Error "Cannot find file at '..\\lib\clcache\clcache\clcache.exe'" HOT 1
- ClCache mess up with MSBuild cache because of STATS.TXT HOT 2
- Can't use clcache from terminal when using VS HOT 3
- Visual Studio IDE w/ CMake w/ clcache always rebuilds HOT 5
- Enabling clcache overrides the local property-sheets
- Migrate LGTM.com installation from OAuth to GitHub App
- Enable long paths support on Windows 10
- Warning ModuleNotFoundError
- Update Visual Studio Integration Docs
- CLCACHE_PROFILE ignored when clcache is installed as .exe from chocolatey or pip HOT 1
- ThreadPoolExecutor / concurrent.futures.as_completed prevent cProfile from providing actual info
- Alternative CMake Integration HOT 4
- Problems with ASM identification, using clcache on CMAKE
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clcache.