gavinpugh / vs-android

Integrated development of Android NDK C/C++ software with Microsoft Visual Studio.
Other
119 stars 34 forks source link

Fix for precompiled headers #115

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The -include switch caused to break the PCH compilation.
Now instead of generating 2 files, it will now correctly make and use the 
precompiled header.

I also included a rar with the fix already implemented.

Original issue reported on code.google.com by wolfwin...@gmail.com on 28 May 2014 at 9:59

Attachments:

GoogleCodeExporter commented 9 years ago
Could you elaborate on why this is necessary? Your description isn't entirely 
clear about the particular setup problem it solves. What's your use case?

My memory is a little unclear from when I first implemented PCH, but the 
"-include" switch is necessary on the "use" PCH case so that it can mimic the 
same behavior that MSVC does with the Cl compiler implementation of PCH.

It appears the only functional thing that setting "use" does, is to specify 
that "-include" switch. So if it's causing problems for your use case, then it 
seems like you just need to unset the "Precompiled Headers" entry to "Not 
Using"?

Original comment by gavin.dj.pugh on 4 Jun 2014 at 11:56