<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[197358] trunk/Tools</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/197358">197358</a></dd>
<dt>Author</dt> <dd>ossy@webkit.org</dd>
<dt>Date</dt> <dd>2016-02-29 10:33:24 -0800 (Mon, 29 Feb 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Remove more LLVM related cruft
https://bugs.webkit.org/show_bug.cgi?id=154821

Reviewed by Darin Adler.

* Scripts/build-jsc:
* Scripts/build-webkit:
* Scripts/copy-webkitlibraries-to-product-directory:
* Scripts/export-llvm-build: Removed.
* Scripts/run-jsc-stress-tests:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkToolsChangeLog">trunk/Tools/ChangeLog</a></li>
<li><a href="#trunkToolsScriptsbuildjsc">trunk/Tools/Scripts/build-jsc</a></li>
<li><a href="#trunkToolsScriptsbuildwebkit">trunk/Tools/Scripts/build-webkit</a></li>
<li><a href="#trunkToolsScriptscopywebkitlibrariestoproductdirectory">trunk/Tools/Scripts/copy-webkitlibraries-to-product-directory</a></li>
<li><a href="#trunkToolsScriptsrunjscstresstests">trunk/Tools/Scripts/run-jsc-stress-tests</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkToolsScriptsexportllvmbuild">trunk/Tools/Scripts/export-llvm-build</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkToolsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Tools/ChangeLog (197357 => 197358)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/ChangeLog        2016-02-29 18:05:17 UTC (rev 197357)
+++ trunk/Tools/ChangeLog        2016-02-29 18:33:24 UTC (rev 197358)
</span><span class="lines">@@ -1,3 +1,16 @@
</span><ins>+2016-02-29  Csaba Osztrogonác  &lt;ossy@webkit.org&gt;
+
+        Remove more LLVM related cruft
+        https://bugs.webkit.org/show_bug.cgi?id=154821
+
+        Reviewed by Darin Adler.
+
+        * Scripts/build-jsc:
+        * Scripts/build-webkit:
+        * Scripts/copy-webkitlibraries-to-product-directory:
+        * Scripts/export-llvm-build: Removed.
+        * Scripts/run-jsc-stress-tests:
+
</ins><span class="cx"> 2016-02-28  Sam Weinig  &lt;sam@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Reimplement WKPageGroup in terms of WKUserContentController
</span></span></pre></div>
<a id="trunkToolsScriptsbuildjsc"></a>
<div class="modfile"><h4>Modified: trunk/Tools/Scripts/build-jsc (197357 => 197358)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/Scripts/build-jsc        2016-02-29 18:05:17 UTC (rev 197357)
+++ trunk/Tools/Scripts/build-jsc        2016-02-29 18:33:24 UTC (rev 197358)
</span><span class="lines">@@ -126,9 +126,6 @@
</span><span class="cx">     if ($copyLibraries) {
</span><span class="cx">         my @copyLibrariesArgs = (&quot;perl&quot;, &quot;Tools/Scripts/copy-webkitlibraries-to-product-directory&quot;);
</span><span class="cx">         push @copyLibrariesArgs, &quot;--device&quot; if willUseIOSDeviceSDK();
</span><del>-        if ($ftlJIT) {
-            push @copyLibrariesArgs, &quot;--llvm&quot;;
-        }
</del><span class="cx">         push @copyLibrariesArgs, productDir();
</span><span class="cx">         (system(@copyLibrariesArgs) == 0) or die;
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkToolsScriptsbuildwebkit"></a>
<div class="modfile"><h4>Modified: trunk/Tools/Scripts/build-webkit (197357 => 197358)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/Scripts/build-webkit        2016-02-29 18:05:17 UTC (rev 197357)
+++ trunk/Tools/Scripts/build-webkit        2016-02-29 18:33:24 UTC (rev 197358)
</span><span class="lines">@@ -189,19 +189,11 @@
</span><span class="cx">         splice(@projects, $webKitIndex, 0, &quot;Source/WebInspectorUI&quot;);
</span><span class="cx"> 
</span><span class="cx">         # Copy library and header from WebKitLibraries to a findable place in the product directory.
</span><del>-        my @copyLibrariesArgs = (&quot;perl&quot;, &quot;Tools/Scripts/copy-webkitlibraries-to-product-directory&quot;, &quot;--wksi&quot;, &quot;--llvm&quot;, productDir());
</del><ins>+        my @copyLibrariesArgs = (&quot;perl&quot;, &quot;Tools/Scripts/copy-webkitlibraries-to-product-directory&quot;, &quot;--wksi&quot;,  productDir());
</ins><span class="cx">         print(join(&quot; &quot;, @copyLibrariesArgs) . &quot;\n&quot;);
</span><span class="cx">         (system(@copyLibrariesArgs) == 0) or die;
</span><span class="cx">     } else {
</span><span class="cx">         my @copyLibrariesArgs = (&quot;perl&quot;, &quot;Tools/Scripts/copy-webkitlibraries-to-product-directory&quot;, &quot;--sdk&quot;, xcodeSDK(), &quot;--wksi&quot;);
</span><del>-        push @copyLibrariesArgs, &quot;--llvm&quot; if willUseIOSDeviceSDK();
-        if (my $hasInternalSDK = xcodeSDK() eq &quot;iphoneos.internal&quot;) {
-            push @copyLibrariesArgs, (
-                &quot;--prefer-system-llvm&quot;,
-                &quot;--llvm-subdirectory&quot;, &quot;internal-llvm&quot;,
-                &quot;--llvm-prefix&quot;, &quot;/usr/local&quot;,
-            );
-        }
</del><span class="cx">         push @copyLibrariesArgs, productDir();
</span><span class="cx">         print(join(&quot; &quot;, @copyLibrariesArgs) . &quot;\n&quot;);
</span><span class="cx">         (system(@copyLibrariesArgs) == 0) or die;
</span></span></pre></div>
<a id="trunkToolsScriptscopywebkitlibrariestoproductdirectory"></a>
<div class="modfile"><h4>Modified: trunk/Tools/Scripts/copy-webkitlibraries-to-product-directory (197357 => 197358)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/Scripts/copy-webkitlibraries-to-product-directory        2016-02-29 18:05:17 UTC (rev 197357)
+++ trunk/Tools/Scripts/copy-webkitlibraries-to-product-directory        2016-02-29 18:33:24 UTC (rev 197358)
</span><span class="lines">@@ -31,15 +31,9 @@
</span><span class="cx"> use webkitdirs;
</span><span class="cx"> 
</span><span class="cx"> my $showHelp = 0;
</span><del>-my $llvm = 0;
</del><span class="cx"> my $wksi = 0;
</span><span class="cx"> my $clean = 0;
</span><del>-my $llvmIncludePackage = &quot;&quot;;
-my $llvmLibraryPackage = &quot;&quot;;
</del><span class="cx"> my $useFullLibPaths = 0;
</span><del>-my $preferSystemLLVMOverDrops = 0;
-my $llvmSubdirectoryName = &quot;llvm&quot;;
-my $llvmPrefix = willUseIOSDeviceSDK() ? &quot;/usr/local&quot; : &quot;/usr/local/LLVMForJavaScriptCore&quot;;
</del><span class="cx"> my $osxVersion;
</span><span class="cx"> my $force = 0;
</span><span class="cx"> 
</span><span class="lines">@@ -59,15 +53,9 @@
</span><span class="cx"> 
</span><span class="cx"> GetOptions(
</span><span class="cx">     'help' =&gt; \$showHelp,
</span><del>-    'llvm!' =&gt; \$llvm,
</del><span class="cx">     'wksi!' =&gt; \$wksi,
</span><span class="cx">     'clean' =&gt; \$clean,
</span><del>-    'use-llvm-includes=s' =&gt; \$llvmIncludePackage,
-    'use-llvm-libraries=s' =&gt; \$llvmLibraryPackage,
</del><span class="cx">     'use-full-lib-paths!' =&gt; \$useFullLibPaths,
</span><del>-    'prefer-system-llvm!' =&gt; \$preferSystemLLVMOverDrops,
-    'llvm-subdirectory=s' =&gt; \$llvmSubdirectoryName,
-    'llvm-prefix=s' =&gt; \$llvmPrefix,
</del><span class="cx">     'osx-version=s' =&gt; \$osxVersion,
</span><span class="cx">     'force!' =&gt; \$force
</span><span class="cx"> );
</span><span class="lines">@@ -170,13 +158,6 @@
</span><span class="cx">     dittoHeaders(&quot;WebKitLibraries/WebKitSystemInterface.h&quot;, &quot;$productDir/usr/local/include/WebKitSystemInterface.h&quot;);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-if ($llvm) {
-    # We have various scripts that call this script and pass LLVM-related options. So, we sort of
-    # silently ignore them for now. We should remove this once we confirm that we've axed all of the
-    # LLVM support everywhere.
-    print &quot;Warning: we no longer depend on LLVM so this script does nothing for LLVM. LLVM-related options will be removed soon.\n&quot;;
-}
-
</del><span class="cx"> sub fileContains
</span><span class="cx"> {
</span><span class="cx">     my ($filename, $string) = @_;
</span></span></pre></div>
<a id="trunkToolsScriptsexportllvmbuild"></a>
<div class="delfile"><h4>Deleted: trunk/Tools/Scripts/export-llvm-build (197357 => 197358)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/Scripts/export-llvm-build        2016-02-29 18:05:17 UTC (rev 197357)
+++ trunk/Tools/Scripts/export-llvm-build        2016-02-29 18:33:24 UTC (rev 197358)
</span><span class="lines">@@ -1,171 +0,0 @@
</span><del>-#!/usr/bin/env ruby
-
-# Copyright (C) 2013, 2014 Apple Inc. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1.  Redistributions of source code must retain the above copyright
-#     notice, this list of conditions and the following disclaimer. 
-# 2.  Redistributions in binary form must reproduce the above copyright
-#     notice, this list of conditions and the following disclaimer in the
-#     documentation and/or other materials provided with the distribution. 
-#
-# THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS &quot;AS IS&quot; AND ANY
-# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
-# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
-# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-require 'getoptlong'
-require 'pathname'
-require 'shellwords'
-require 'tmpdir'
-
-def mychdir(path)
-    puts &quot;-&gt; #{path.to_s}&quot;
-    Dir.chdir(path) {
-        yield
-    }
-    puts &quot;&lt;- #{path.to_s}&quot;
-end
-
-def mysys(*cmd)
-    cmd = cmd.map{|value| value.to_s}
-    commandArray = cmd.map{|value| Shellwords.shellescape(value)}.join(' ')
-    $stderr.puts &quot; $ #{commandArray}&quot;
-    raise unless system(*cmd)
-end
-
-$libraryPackage = Pathname.new(&quot;LLVMLibraries.tar.bz2&quot;)
-$includePackage = Pathname.new(&quot;LLVMIncludes.tar.bz2&quot;)
-$llvmBuild = Pathname.new(&quot;./llvm&quot;)
-$llvmBinary = Pathname.new(&quot;./llvm/Release&quot;)
-$llvmSource = Pathname.new(&quot;./llvm&quot;)
-$prefix = nil
-$compression = &quot;bzip2&quot;
-
-def usage
-    puts &quot;export-llvm-build&quot;
-    puts
-    puts &quot;--library-package  (-l)   Change where to put the compressed library package.&quot;
-    puts &quot;                          Default is #{$libraryPackage}.&quot;
-    puts &quot;--include-package  (-i)   Change wehre to put the compressed header package.&quot;
-    puts &quot;                          Default is #{$includePackage}.&quot;
-    puts &quot;--llvm-build       (-b)   Change which LLVM build directory to use.&quot;
-    puts &quot;                          Default is #{$llvmBuild}.&quot;
-    puts &quot;--llvm-binary      (-B)   Change which LLVM binary directory to use.&quot;
-    puts &quot;                          Default is #{$llvmBinary}.&quot;
-    puts &quot;--llvm-source      (-s)   Change which LLVM source directory to use.&quot;
-    puts &quot;                          Default is #{$llvmSource}.&quot;
-    puts &quot;--prefix           (-p)   Use an \&quot;installed\&quot; LLVM with the given prefix.&quot;
-    puts &quot;--compression             Change what compression to do. Can be one of gzip,&quot;
-    puts &quot;                          bzip2, or none.&quot;
-    puts &quot;                          Default is #{$compression}.&quot;
-    exit 1
-end
-
-GetoptLong.new(['--help', '-h', GetoptLong::NO_ARGUMENT],
-               ['--library-package', '-l', GetoptLong::REQUIRED_ARGUMENT],
-               ['--include-package', '-i', GetoptLong::REQUIRED_ARGUMENT],
-               ['--llvm-build', '-b', GetoptLong::REQUIRED_ARGUMENT],
-               ['--llvm-binary', '-B', GetoptLong::REQUIRED_ARGUMENT],
-               ['--llvm-source', '-s', GetoptLong::REQUIRED_ARGUMENT],
-               ['--prefix', '-p', GetoptLong::REQUIRED_ARGUMENT],
-               ['--compression', GetoptLong::REQUIRED_ARGUMENT]).each {
-    | opt, arg |
-    case opt
-    when '--help'
-        usage
-    when '--library-package'
-        $libraryPackage = Pathname.new(arg)
-    when '--include-package'
-        $includePackage = Pathname.new(arg)
-    when '--llvm-build'
-        $llvmBuild = Pathname.new(arg)
-    when '--llvm-binary'
-        $llvmBinary = Pathname.new(arg)
-    when '--llvm-source'
-        $llvmSource = Pathname.new(arg)
-    when '--prefix'
-        $prefix = Pathname.new(arg)
-    when '--compression'
-        $compression = arg
-    else
-        raise
-    end
-}
-
-$currentPath = Pathname.pwd
-
-def compressionChar
-    case $compression
-    when &quot;gzip&quot;
-        &quot;z&quot;
-    when &quot;bzip2&quot;
-        &quot;y&quot;
-    when &quot;none&quot;
-        &quot;&quot;
-    else
-        raise &quot;Bad choice of compression.&quot;
-    end
-end
-
-if $prefix
-    $llvmBinary = $prefix
-    $llvmBuild = $prefix
-    $llvmSource = $prefix
-end
-
-mychdir($llvmBinary + &quot;lib&quot;) {
-    mysys(&quot;tar&quot;, &quot;-c#{compressionChar}vf&quot;, ($currentPath + $libraryPackage).to_s,
-          *Dir.entries('.').select {
-              | value |
-              value =~ /\.a$/ and value !~ /libgtest/
-          })
-}
-
-Dir.mktmpdir {
-    | directory |
-    directory = Pathname.new(directory).realpath
-    mychdir($llvmSource) {
-        begin
-            mysys(&quot;svn&quot;, &quot;export&quot;, &quot;include&quot;, directory + &quot;include&quot;)
-        rescue
-            mysys(&quot;ditto&quot;, &quot;include&quot;, directory + &quot;include&quot;)
-        end
-    }
-    [&quot;include/llvm/Config&quot;].each {
-        | genDirName |
-        configSrcPath = $llvmBuild + genDirName
-        raise unless configSrcPath.directory?
-        configDstPath = directory + genDirName
-        Dir.foreach(configSrcPath) {
-            | filename |
-            next unless filename =~ /\.def$/ or filename =~ /\.h$/
-            mysys(&quot;cp&quot;, configSrcPath + filename, configDstPath + filename)
-        }
-    }
-    [&quot;include/llvm/Support/DataTypes.h&quot;].each {
-        | genFileName |
-        mysys(&quot;cp&quot;, $llvmBuild + genFileName, directory + genFileName)
-    }
-    mychdir(directory + &quot;include&quot;) {
-        mysys(&quot;tar&quot;, &quot;-cyvf&quot;, $currentPath + $includePackage, &quot;.&quot;)
-    }
-}
-
-puts
-puts &quot;LLVM has been packaged for use by WebKit.&quot;
-puts
-puts &quot;You can use it right now by setting these environment variables:&quot;
-puts
-puts &quot;export LLVM_LIBRARY_PACKAGE=#{Shellwords.shellescape($libraryPackage.realpath.to_s)}&quot;
-puts &quot;export LLVM_INCLUDE_PACKAGE=#{Shellwords.shellescape($includePackage.realpath.to_s)}&quot;
-puts
</del></span></pre></div>
<a id="trunkToolsScriptsrunjscstresstests"></a>
<div class="modfile"><h4>Modified: trunk/Tools/Scripts/run-jsc-stress-tests (197357 => 197358)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/Scripts/run-jsc-stress-tests        2016-02-29 18:05:17 UTC (rev 197357)
+++ trunk/Tools/Scripts/run-jsc-stress-tests        2016-02-29 18:33:24 UTC (rev 197358)
</span><span class="lines">@@ -1476,13 +1476,6 @@
</span><span class="cx">             end
</span><span class="cx"> 
</span><span class="cx">             if $remote and $hostOS == &quot;linux&quot;
</span><del>-                if $enableFTL
-                    begin
-                        FileUtils.cp_r originalJSCPath + &quot;../../lib/libllvmForJSC.so&quot; , $jscPath.dirname
-                    rescue
-                        $stderr.puts &quot;Warning: unable to copy libllvmForJSC.so to the bundle.&quot;
-                    end
-                end
</del><span class="cx">                 begin
</span><span class="cx">                     dependencies = `ldd #{source}`
</span><span class="cx">                     dependencies.split(/\n/).each {
</span></span></pre>
</div>
</div>

</body>
</html>