Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
clang pch support
oBFusCATed:
What should be done to add support for it?
I've tried to build C::B's project on linux using the clang compiler and the pch is not generated.
stahta01:
--- Quote from: oBFusCATed on March 19, 2014, 10:51:38 pm ---What should be done to add support for it?
I've tried to build C::B's project on linux using the clang compiler and the pch is not generated.
--- End quote ---
Edit the file properties of sdk.h and sdk_precomp.h should do it.
Might only need to edit one under Linux.
How to edit will be based on the command to create PCH using clang compiler.
Tim S.
oBFusCATed:
It should just work, but it doesn't, my question is what should be done to add support for the magick...
stahta01:
--- Quote from: oBFusCATed on March 19, 2014, 11:13:33 pm ---It should just work, but it doesn't, my question is what should be done to add support for the magick...
--- End quote ---
Have to do some major work in the CBP to add PCH for clang.
http://clang.llvm.org/docs/UsersManual.html#precompiled-headers
I am thinking "Relocatable PCH Files" will require less changes to the CB cbp and source files.
But, I am thinking the "-include" will be easier to maintain if the CB Dev team decides to change the GCC Compiler to use the same method.
The "-include" method requires all the including of the sdk.h in source files to be removed (or guards added); at least it does on Windows using MinGW GCC.
Example of what is meant by guards.
--- Code: ---Index: src/src/examinememorydlg.cpp
===================================================================
--- src/src/examinememorydlg.cpp (revision 9742)
+++ src/src/examinememorydlg.cpp (working copy)
@@ -7,7 +7,9 @@
* $HeadURL$
*/
-#include "sdk.h"
+#ifndef SDK_H
+ #include <sdk.h>
+#endif
#ifndef CB_PRECOMP
#include <wx/button.h>
--- End code ---
Tim S.
oBFusCATed:
Hm, does C::B support precompiled headers for VC? Can someone on windows test it?
Navigation
[0] Message Index
[#] Next page
Go to full version