<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - FindLLVM.cmake does not find shared library on OSX, Windows, or with llvm 3.8+"
   href="https://bugs.webkit.org/show_bug.cgi?id=153191">153191</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>FindLLVM.cmake does not find shared library on OSX, Windows, or with llvm 3.8+
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>JavaScriptCore
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jeremyhu&#64;apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The change in <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [CMake] Do not use LLVM static libraries for FTL JIT"
   href="show_bug.cgi?id=151559">bug #151559</a> doesn't work for current versions of llvm on all platforms, and it won't work on platforms that don't use the .so file extension (eg: OS X and Windows)

The macro is doing:

    set(LLVM_SONAME &quot;LLVM-${LLVM_VERSION}&quot;) 
     if (EXISTS &quot;${LLVM_LIBS_DIRECTORY}/lib${LLVM_SONAME}.so&quot;) 
         set(LLVM_LIBRARIES &quot;${LLVM_LDFLAGS} -l${LLVM_SONAME}&quot;) 
     else () 
         set(LLVM_LIBRARIES &quot;${LLVM_LDFLAGS} ${LLVM_LIBS}&quot;) 
     endif ()

Recent versions of llvm don't include &quot;-${LLVM_VERSION}&quot; in the name of the library.
On OS X, the library is named libLLVM-${LLVM_VERSION}.dylib for llvm 3.7 and earlier and libLLVM.dylib for llvm 3.8 (release_38 branch) and 3.9 (trunk).

I suspect the library is named libLLVM.so on Linux and BSD for llvm 3.8 and later.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>