ligcc fails to compile a precompiled header

Bug #1052404 reported by Daniel Stiefelmaier on 2012-09-18
This bug affects 1 person
Affects Status Importance Assigned to Milestone

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 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-libuild_0.5.5-2_amd64.deb)

Matthias Klumpp (ximion) on 2012-09-18
Changed in listaller:
importance: Undecided → Low
status: New → Triaged
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers