[Webkit-unassigned] [Bug 153191] New: FindLLVM.cmake does not find shared library on OSX, Windows, or with llvm 3.8+

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jan 16 21:36:19 PST 2016


https://bugs.webkit.org/show_bug.cgi?id=153191

            Bug ID: 153191
           Summary: FindLLVM.cmake does not find shared library on OSX,
                    Windows, or with llvm 3.8+
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jeremyhu at apple.com

The change in bug #151559 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 "LLVM-${LLVM_VERSION}") 
     if (EXISTS "${LLVM_LIBS_DIRECTORY}/lib${LLVM_SONAME}.so") 
         set(LLVM_LIBRARIES "${LLVM_LDFLAGS} -l${LLVM_SONAME}") 
     else () 
         set(LLVM_LIBRARIES "${LLVM_LDFLAGS} ${LLVM_LIBS}") 
     endif ()

Recent versions of llvm don't include "-${LLVM_VERSION}" 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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160117/b106fd83/attachment.html>


More information about the webkit-unassigned mailing list