Bug 143371 - IDL preprocessor ( and possibly other tools ) should have flag to enable/disable use of C preprocessor
Summary: IDL preprocessor ( and possibly other tools ) should have flag to enable/disa...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Enhancement
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-03 06:03 PDT by Steve 'Harry' Coul
Modified: 2015-04-03 06:03 PDT (History)
1 user (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 06:03:33 PDT
Most scripts processed by perl during build involve the invocation of the C preprocessor ( via gcc etc. ) for each script. As per bug #143370 this can have a major impact on build times. A proposal is made in #143370 to remove the use of C preprocessor directives.

The next step would be to remove the use of the preprocessor.

In an ideal world, all C directives could be removed from all files, and preprocessor.pm be replaced with a simple perl chomp() in all the tools.

As a first step, I propose adding a command option to replace preprocessor with chomp only for certain cases and gradually enable it, starting post but #143370 with the IDL preprocessor.