Giter Site home page Giter Site logo

Visual Studio 2010 about clcache HOT 9 CLOSED

frerich avatar frerich commented on August 24, 2024
Visual Studio 2010

from clcache.

Comments (9)

inorton avatar inorton commented on August 24, 2024

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.

mellon85 avatar mellon85 commented on August 24, 2024

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.

mellon85 avatar mellon85 commented on August 24, 2024

Your cl.exe is the generated py2exe file?

from clcache.

mellon85 avatar mellon85 commented on August 24, 2024

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.

inorton avatar inorton commented on August 24, 2024

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.

mellon85 avatar mellon85 commented on August 24, 2024

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.

mellon85 avatar mellon85 commented on August 24, 2024

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.

webmaster128 avatar webmaster128 commented on August 24, 2024

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.

NicolasDorier avatar NicolasDorier commented on August 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.