[Mesa-dev] Suggestions for improving meson-based builds

Lionel Landwerlin lionel.g.landwerlin at intel.com
Mon Dec 17 12:21:08 UTC 2018


On 17/12/2018 12:04, Ilia Mirkin wrote:
> On Mon, Dec 17, 2018 at 6:59 AM Lionel Landwerlin
> <lionel.g.landwerlin at intel.com> wrote:
>> On 17/12/2018 00:33, Jason Ekstrand wrote:
>>
>> On Sun, Dec 16, 2018 at 1:49 PM Ilia Mirkin <imirkin at alum.mit.edu> wrote:
>>> 1. Build creation command recovery. With autotools, "head config.log"
>>> will tell you how you configured it. This is important when things get
>>> screwed up, and so has to be available in plain text somewhere. There
>>> are a variety of other occasions where this can be useful -- debugging
>>> someone else's build, creating a second build for yourself with a few
>>> options changed, etc.
>>
>> I'm not sure that this is necessary but I agree that it is useful.  I think Dylan said someone was working on this?
>>
>>
>>
>> build/build.ninja contains this line, seems to be close enough to what Ilia's looking for :
>>
>>
>>   COMMAND = /home/djdeath/.local/bin/meson --internal scanbuild /home/djdeath/src/mesa-src/mesa /home/djdeath/src/mesa-src/mesa/build /home/djdeath/.local/bin/meson -Dasm=true -Dbuild-tests=true -Dd3d-drivers-path= -Ddri-drivers-path= '-Ddri-drivers=['"'"'i915'"'"',$ '"'"'i965'"'"']' -Ddri-search-path= -Ddri3=auto -Degl=auto '-Dgallium-drivers=[]' -Dgallium-extra-hud=false -Dgallium-nine=false -Dgallium-omx=auto -Dgallium-opencl=disabled -Dgallium-va=auto -Dgallium-vdpau=false -Dgallium-xa=auto -Dgallium-xvmc=auto -Dgbm=auto -Dgles1=true -Dgles2=true -Dglvnd=false -Dglx-read-only-text=false -Dglx=dri -Dlibunwind=auto -Dllvm=auto -Dlmsensors=auto -Domx-libs-path= -Dopengl=true -Dosmesa-bits=8 -Dosmesa=none '-Dplatforms=['"'"'x11'"'"',$ '"'"'drm'"'"',$ '"'"'wayland'"'"',$ '"'"'surfaceless'"'"']' -Dpower8=auto -Dselinux=false -Dshader-cache=true -Dshared-glapi=true -Dshared-llvm=true '-Dswr-arches=['"'"'avx'"'"',$ '"'"'avx2'"'"']' '-Dtools=['"'"'intel-ui'"'"']' -Dva-libs-path= -Dvalgrind=auto -Dvdpau-libs-path= '-Dvulkan-drivers=['"'"'intel'"'"']' -Dvulkan-icd-dir= -Dxlib-lease=auto -Dxvmc-libs-path=
> I found this too. I didn't actually try whether it would work, but
> seemed odd with all the escaping. Either way, I highly doubt that this
> is the command that you entered in. The command I ran is certainly not
> reflected in my file.
>
>    -ilia
>
True, it seems to add the default values.


-

Lionel




More information about the mesa-dev mailing list