scons icon indicating copy to clipboard operation
scons copied to clipboard

Gcc precompiled headers

Open bdbaddog opened this issue 7 years ago • 6 comments

This issue was originally created at: 2009-09-23 12:43:58. This issue was reported by: overmind.

overmind said at 2009-09-23 12:43:58

The basic SCons package supports only the MSVC precompiled packages; however, there is a tool named 'Gch' that does the same thing for GCC-based compilers. Both have a very similar syntax. Couldn't they be merged into one standard tool?

This would improve SCons portability. Also, if such a tool would be created, it would be better to force the precompiled header pre-inclusion in the source files (like GCC's -include option); this would simplify porting the Qt programs to SCons, for example, because its MetaObject Compiler don't include the PCH into the generated source (the only option now is using '-include' directly, but this makes the build script GCC-bound).

gregnoel said at 2009-12-09 14:58:14

Bug party triage. Good idea, but it's very unlikely that core developer time will be available to work on it in the near term.

weegreenblobbie said at 2013-03-29 09:46:30 Created an attachment (id=917)

GCH tool, pulled from scons-users discussion topic

weegreenblobbie said at 2013-03-29 09:48:09 Attached the GCH tool pulled from the scons-users discussion topic.

Votes for this issue: 2.

weegreenblobbie attached gch.py at 2013-03-29 09:46:30.

GCH tool, pulled from scons-users discussion topic

bdbaddog avatar Jan 02 '18 13:01 bdbaddog

Sorry, hit wrong button in github app, didn't mean to close

mwichmann avatar Sep 28 '21 17:09 mwichmann

Minimally updated version of attachment (2to3/black). Funky naming because github is fussy about allowed file suffixes for uploads.

tools-gch-2489.txt

mwichmann avatar Sep 29 '21 18:09 mwichmann

See also #3064 (for the -include topic)

mwichmann avatar Jul 04 '22 16:07 mwichmann

@bdbaddog should we consider dropping this onto contrib?

mwichmann avatar Jul 04 '22 16:07 mwichmann

@bdbaddog should we consider dropping this onto contrib?

Hrm. We have PCH for MSVC, but not for gcc?

bdbaddog avatar Jul 11 '22 18:07 bdbaddog

There are several issues that mention adding them - see also #4026

mwichmann avatar Jul 13 '22 13:07 mwichmann