<?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>117674</bug_id>
          
          <creation_ts>2013-06-15 10:45:27 -0700</creation_ts>
          <short_desc>Support using clang instead of gcc for bindings preprocessing</short_desc>
          <delta_ts>2013-06-16 08:42:11 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Darin Adler">darin</reporter>
          <assigned_to name="Darin Adler">darin</assigned_to>
          <cc>cdumez</cc>
    
    <cc>commit-queue</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>mrowe</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>900786</commentid>
    <comment_count>0</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2013-06-15 10:45:27 -0700</bug_when>
    <thetext>Support using clang instead of gcc for bindings preprocessing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>900787</commentid>
    <comment_count>1</comment_count>
      <attachid>204771</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2013-06-15 10:46:08 -0700</bug_when>
    <thetext>Created attachment 204771
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>900843</commentid>
    <comment_count>2</comment_count>
      <attachid>204771</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2013-06-15 19:15:58 -0700</bug_when>
    <thetext>Comment on attachment 204771
Patch

Clearing flags on attachment: 204771

Committed r151619: &lt;http://trac.webkit.org/changeset/151619&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>900844</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2013-06-15 19:16:00 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>900849</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2013-06-15 20:09:46 -0700</bug_when>
    <thetext>The &apos;CC&apos; environment variable should have been set to the correct compiler by the &quot;Generate Derived Sources&quot; build phase script (unless you were running the scripts outside of an Xcode build).

In the case of running the scripts outside of Xcode, the proper way to fix this for Mac OS X is to use &apos;xcrun&apos; to find &apos;cc&apos;, which maps to the default compiler for the specified SDK (or the &quot;current&quot; SDK on Mac OS X) rather than to hard-code paths that assume the &quot;CLTools&quot; package is installed with Xcode (which isn&apos;t always true):

xcrun -find cc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>900850</commentid>
    <comment_count>5</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2013-06-15 20:17:22 -0700</bug_when>
    <thetext>Yeah, I&apos;m also surprised that the CC environment variable wasn&apos;t taking care of this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>900874</commentid>
    <comment_count>6</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2013-06-16 08:42:11 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; The &apos;CC&apos; environment variable should have been set to the correct compiler by the &quot;Generate Derived Sources&quot; build phase script (unless you were running the scripts outside of an Xcode build).

I was. This is to make run-bindings-tests work. Sorry, I should have said that.

&gt; In the case of running the scripts outside of Xcode, the proper way to fix this for Mac OS X is to use &apos;xcrun&apos; to find &apos;cc&apos;, which maps to the default compiler for the specified SDK (or the &quot;current&quot; SDK on Mac OS X) rather than to hard-code paths that assume the &quot;CLTools&quot; package is installed with Xcode (which isn&apos;t always true):
&gt; 
&gt; xcrun -find cc

We could put a Mac-specific fix like that into these two perl scripts, or add Mac-specific code to run-bindings-tests so it sets CC. Do you have a preference, Dave?</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>204771</attachid>
            <date>2013-06-15 10:46:08 -0700</date>
            <delta_ts>2013-06-15 19:15:58 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-117674-20130615104425.patch</filename>
            <type>text/plain</type>
            <size>2224</size>
            <attacher name="Darin Adler">darin</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTUxNTk5CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggMjc3ODkzZWNkYjdiYmJm
MmNlZGY3ZWJhMTExMzJjMzhkN2ZmOTYxNC4uZjgzNTI2YmNjN2M0MTNmYTNjMmUyMzc2MmNmYjY2
MTcwNzBmMGU4YiAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE4IEBACisyMDEzLTA2LTE1ICBEYXJp
biBBZGxlciAgPGRhcmluQGFwcGxlLmNvbT4KKworICAgICAgICBTdXBwb3J0IHVzaW5nIGNsYW5n
IGluc3RlYWQgb2YgZ2NjIGZvciBiaW5kaW5ncyBwcmVwcm9jZXNzaW5nCisgICAgICAgIGh0dHBz
Oi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xMTc2NzQKKworICAgICAgICBSZXZp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