<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>143371</bug_id>
          
          <creation_ts>2015-04-03 06:03:33 -0700</creation_ts>
          <short_desc>IDL preprocessor ( and possibly other tools ) should have flag to enable/disable use of C preprocessor</short_desc>
          <delta_ts>2015-04-03 06:03:33 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Steve &apos;Harry&apos; Coul">scoul</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1082540</commentid>
    <comment_count>0</comment_count>
    <who name="Steve &apos;Harry&apos; Coul">scoul</who>
    <bug_when>2015-04-03 06:03:33 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>