ligcc fails to compile a precompiled header
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Listaller |
Triaged
|
Low
|
Unassigned |
Bug Description
g++ myheader.h
creates the precompiled header myheader.h.gch, while
lig++ myheader.h
does nothing.
That is because the "foreach" sub in GCC.pm decides that .h files are not files that need to be compiled.
As a workaround, I removed the ".h" from
our $headerTypes = 'h|hpp';
A real fix would probably have to use some more fine-grained magic to decide wether a .h file is the target of the compilation or if it is 'just' a parameter to a different compilation. A simple approach would say that a header file is to be compiled if no source file is present. However, this would not cover the case when somebody tries to create a precompiled header and supplies additional headers with the -include switch.
(tested with listaller-
Changed in listaller: | |
importance: | Undecided → Low |
status: | New → Triaged |