Comments (6)
Which generator due you use?
from cotire.
Makefile
from cotire.
Dependencies are completely handled by the build system that CMake creates. Cotire is passive and relies on the build system triggering a re-build of the precompiled header when it is necessary. For that purpose cotire uses the IMPLICIT_DEPENDS option which makes CMake scan the precompiled header dependencies at build time. Interestingly this does not seem to work in your case.
Which compiler do you use? Do you also use a compiler wrapper (e.g., ccache)?
from cotire.
I am using Clang without any wrapper.
If I change include files inside the project everything works fine. I am talking about system wide header files, which are not included tracked by cmake in any way.
from cotire.
This still happens regularly.
CMake triggers a rebuild of every affected in-project source file but not the PCH.
It also affects GCC. There it doesn’t even warn – not even with -Winvalid-pch
, it just uses the outdated PCH.
+:
I also came across Clang’s -verify-pch
, although according to the above explanation that shouldn’t be necessary.
from cotire.
Still an issue for me with clang
from cotire.
Related Issues (20)
- cotire and GCC flag "-include header.h"
- Project status HOT 2
- Problem using Cotire with Xcode10 New Build System HOT 1
- Run cotire from a different directory
- cxx
- MSVC 2017 /Fp and /Yc and /Yu Flags Broken On 391bf6b7609e14f5976bd5247b68d63cbf8d4d12 HOT 4
- Is it possible to exclude precompiled headers from the clean target?
- Exclude unity source from visual studio scanning
- How to configure runtime/thirdparty headers alone HOT 1
- Evaluation file to be written multiple times with different content
- Target cannot be cotired HOT 3
- why is PCH generation restricted to clang-cl on windows?
- Problems were encountered - C1083: Cannot open include file HOT 2
- New pre-compiled headers support in CMake 3.16 HOT 2
- cotire slows down the compilation of the test code
- MSVC target to be cotired has warning level: /W4 created cotire target: /W1
- Same Target Had been compile Twice with different Compile flags, but the prebuild header file hadn't been recreated. HOT 2
- redefinition of class 'xxxx'
- [pkgconfig] cotire doesn't fully support cmake function FindPkgConfig HOT 1
- Project output directory. Android HOT 2
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 cotire.