Comments (6)
PCH is a bit of an issue. Information about the compiled PCH is stored in the application PDB, but it can't be specified on the command-line or else the compiler will attempt to modify it, which won't work while the application is running. blink could copy it to a temporary location and specify that path to workaround this. But what then what happens if the user decides to modify the file generating the PCH? All future compiles would now reference the old PCH data from the application PDB, which no longer makes sense.
from blink.
Yeah quite tricky, you could also try to disable PCH but most code out there probably does not compile both ways.
By the way what I tested was the Win32 (GUI) sample project VS generates. That uses PCH by default.
from blink.
@crosire It would be great if this limitation was advertised on the readme. Too bad it won't work, I was excited to try this out on my project!
from blink.
blink should still work, it will just take longer to compile a change, since it cannot make use of PCH data.
from blink.
It looks like it gets setup fine, but then once I make a code change (in this case to main.cpp) I get the following output:
Detected modification to: C:\Code\Flex\Flex\FlexEngine\src\main.cpp
main.cpp
C:\Code\Flex\Flex\FlexEngine\src\main.cpp(1): fatal error C1083: Cannot open include file: 'stdafx.hpp': No such file or directory
Finished compiling "C:\Code\Flex\Flex\FlexEngine\src\main.temp.obj" with code 2.
I'm compiling with /ZI, are there any other flags which are necessary? (Edit and Continue for example?)
from blink.
See #32 (comment)
from blink.
Related Issues (20)
- Dependent libraries and static storage duration data HOT 4
- Duplicate file modification notifications HOT 5
- How to get it to work? HOT 5
- support CMake HOT 3
- Troubleshooting target program crash HOT 3
- Question about relocations and static local variables HOT 4
- comparison with "edit and continue" HOT 3
- header file changes HOT 5
- compiler error messages not displayed HOT 2
- Function to sync patching time HOT 1
- blink.exe crash when editing program built with the /bigobj flag HOT 16
- cl.exe not found HOT 5
- won't work for a simple test. HOT 3
- Support for exceptions HOT 2
- Include path HOT 2
- 'cl.exe' is not recognized as an internal or external command HOT 3
- Linker issues HOT 2
- File changes not detected HOT 1
- Does this work with Visual Studio 2022? HOT 1
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 blink.