ligcc fails to compile a precompiled header

Bug #1052404 reported by Daniel Stiefelmaier
6
This bug affects 1 person
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-libuild_0.5.5-2_amd64.deb)

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.