<?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>173066</bug_id>
          
          <creation_ts>2017-06-07 10:35:10 -0700</creation_ts>
          <short_desc>[CMake] Only force response files for Ninja with CMake &lt; 3.2 on Linux</short_desc>
          <delta_ts>2017-06-07 11:41:14 -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>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=170105</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Loïc Yhuel">loic.yhuel</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>clopez</cc>
    
    <cc>commit-queue</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>tpopela</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1316533</commentid>
    <comment_count>0</comment_count>
    <who name="Loïc Yhuel">loic.yhuel</who>
    <bug_when>2017-06-07 10:35:10 -0700</bug_when>
    <thetext>[CMake] Only force response files for Ninja with CMake &lt; 3.2 on Linux</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1316534</commentid>
    <comment_count>1</comment_count>
      <attachid>312195</attachid>
    <who name="Loïc Yhuel">loic.yhuel</who>
    <bug_when>2017-06-07 10:36:41 -0700</bug_when>
    <thetext>Created attachment 312195
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1316540</commentid>
    <comment_count>2</comment_count>
    <who name="Loïc Yhuel">loic.yhuel</who>
    <bug_when>2017-06-07 10:48:52 -0700</bug_when>
    <thetext>CMake uses response files when needed, but the limit was wrong on Linux (https://cmake.org/Bug/view.php?id=14892, fixed in CMake 3.2).
It created the original https://bugs.webkit.org/show_bug.cgi?id=129771, with &quot;argument list too long&quot; errors. 

CMake 3.6 added response file support for compile rules (which created https://bugs.webkit.org/show_bug.cgi?id=168770 since we forced the response files).

On Linux, CMake &gt;= 3.2 uses response files as needed (ie only for libWebCore.a).
Hopefully platforms which don&apos;t support response files (FreeBSD, Apple) have a big enough command line length limit (sysconf(_SC_ARG_MAX)) to avoid them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1316543</commentid>
    <comment_count>3</comment_count>
      <attachid>312195</attachid>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-06-07 10:51:26 -0700</bug_when>
    <thetext>Comment on attachment 312195
Patch

Thanks, let&apos;s try it! I only wonder if we still need the conditionals to force disable response files when using icecc. Carlos Lopez, Tom, what do you think?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1316552</commentid>
    <comment_count>4</comment_count>
    <who name="Loïc Yhuel">loic.yhuel</who>
    <bug_when>2017-06-07 11:09:55 -0700</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #3)
&gt; Comment on attachment 312195 [details]
&gt; Patch
&gt; 
&gt; Thanks, let&apos;s try it! I only wonder if we still need the conditionals to
&gt; force disable response files when using icecc. Carlos Lopez, Tom, what do
&gt; you think?

The icecc test was only disabling CMAKE_NINJA_FORCE_RESPONSE_FILE for CMake &gt; 3.5, older versions only support response files to link or create archives.
The archives are done locally with ar, and for the link icecc probably forwards all arguments to the local CXX.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1316553</commentid>
    <comment_count>5</comment_count>
      <attachid>312195</attachid>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-06-07 11:13:13 -0700</bug_when>
    <thetext>Comment on attachment 312195
Patch

I&apos;m not sure I understand, but let&apos;s try it!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1316556</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-06-07 11:14:08 -0700</bug_when>
    <thetext>Ah well yeah, I must have misread the conditionals... clearly this shouldn&apos;t affect icecc at all (unless using old CMake).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1316568</commentid>
    <comment_count>7</comment_count>
      <attachid>312195</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-06-07 11:41:12 -0700</bug_when>
    <thetext>Comment on attachment 312195
Patch

Clearing flags on attachment: 312195

Committed r217894: &lt;http://trac.webkit.org/changeset/217894&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1316569</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-06-07 11:41:14 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>312195</attachid>
            <date>2017-06-07 10:36:41 -0700</date>
            <delta_ts>2017-06-07 11:41:12 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-173066-20170607193640.patch</filename>
            <type>text/plain</type>
            <size>2123</size>
            <attacher name="Loïc Yhuel">loic.yhuel</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjE3ODgzCmRpZmYgLS1naXQgYS9Tb3VyY2UvY21ha2UvT3B0
aW9uc0NvbW1vbi5jbWFrZSBiL1NvdXJjZS9jbWFrZS9PcHRpb25zQ29tbW9uLmNtYWtlCmluZGV4
IDUwZDQwOTQ1O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