03-22-2007, 05:22 PM,
|
|
abs1nth
Senior Member
|
Posts: 358
Threads: 5
Joined: Sep 2005
|
|
precompiled prefix header
after the release has been made, would you be interested to consider using a global header file for all external includes?
i've tried it out today and here are the results:
- cuts about 500 lines of redundant code
- reduces compilation time from 22 to 18 secs and further down to 12 when precompiling the prefix header (these are for a debug build on my machine)
in case you are interested i've uploaded the patches:
new include/pch.h file:
http://pastebin.ca/407011
svn diff for include directory:
http://pastebin.ca/407015
svn diff for src directly:
http://pastebin.ca/407020
you'd also need to modify the scons scripts to pass "-include include/pch.h" to gcc ...
|
|
03-27-2007, 09:30 PM,
|
|
alex25
Senior Member
|
Posts: 531
Threads: 42
Joined: Jun 2006
|
|
abs1nth Wrote:ok commited hope everything is alright
don't forget:
>you'd also need to modify the scons scripts to pass "-include include/pch.h" to gcc ...
nothing compiles anymore. can we please fix it?
--alex--
|
|
03-28-2007, 12:18 AM,
|
|
alex25
Senior Member
|
Posts: 531
Threads: 42
Joined: Jun 2006
|
|
abs1nth Wrote:i'm sure someone will fix the SConstruct files soon enough
huh?! shouldn't whoever broke it fix it? just wondering...
--alex--
|
|
03-28-2007, 09:08 AM,
|
|
abs1nth
Senior Member
|
Posts: 358
Threads: 5
Joined: Sep 2005
|
|
thelusiv Wrote:That didn't work, and I've tried quite a few other methods like adding it to the SConstruct but for some reason, no matter what it always says it can't find the file.
what about:
local_env.Append(CCFLAGS = '-include #/include/pch.h')
thelusiv Wrote:to the files that complain about it, it's fine. abs1nth, is this going to mess up your build system somehow?
should be fine ;-)
|
|
|