Bug 143370 - IDL files should not depend on C preprocessor
Summary: IDL files should not depend on C preprocessor
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Bindings (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Enhancement
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-03 05:56 PDT by Steve 'Harry' Coul
Modified: 2015-04-03 12:45 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve 'Harry' Coul 2015-04-03 05:56:45 PDT
IDL has the [Conditional] syntax as well as use of c-preprocessor #ifdef etc.

This means two methods of achieving the same result, which is never tidy, and also that the perl IDL processor needs to invoke gcc or equivalent for every file. The number of IDL files has drastically increased over the last couple of years.

Some preliminary testing on saving the preprocessed IDL and removing the gcc invocation from preprocessor.pm show a clean-build time reduction of 10 to 25% depending on ccache and host configuration.

Such simplification would also simplify any experiments in replacing the processing tools, say from perl to native code on host.