[Mesa-dev] [Bug 109155] Update documentation for using custom llvm to build Mesa with Meson

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Dec 26 20:27:22 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=109155

            Bug ID: 109155
           Summary: Update documentation for using custom llvm to build
                    Mesa with Meson
           Product: Mesa
           Version: unspecified
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Other
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: shtetldik at gmail.com
        QA Contact: mesa-dev at lists.freedesktop.org

Current documentation at https://www.mesa3d.org/meson.html says:

> LLVM
> Meson includes upstream logic to wrap llvm-config using its standard dependency
> interface. It will search $PATH (or %PATH% on windows) for llvm-config (and
> llvm-config$version and llvm-config-$version), so using an LLVM from a
> non-standard path is as easy as PATH=/path/with/llvm-config:$PATH meson build.

That's really a very inflexible method, for instance you can't use different
llvm configs installed in the same directory.

As per https://github.com/mesonbuild/meson/issues/2887#issuecomment-439586787
as of Meson 0.49, it's now possible to override llvm-config using --native-file
option.

Here is an example:

    llvm_config=/usr/bin/llvm-config-8 # or whatever you need

    read -r -d '' native_config <<EOF
    [binaries]
    llvm-config = "$llvm_config"
    EOF

    meson ... --native-file=<(echo "$native_config") ...

Please update Mesa documentation above, since this option is very obscure and
hard to find.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20181226/9a12d338/attachment-0001.html>


More information about the mesa-dev mailing list