<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Tue, Dec 4, 2018 at 7:18 PM Dylan Baker <<a href="mailto:dylan@pnwbakers.com">dylan@pnwbakers.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Quoting Marek Olšák (2018-12-04 16:04:11)<br>
> On Tue, Dec 4, 2018 at 7:01 PM Dylan Baker <<a href="mailto:dylan@pnwbakers.com" target="_blank">dylan@pnwbakers.com</a>> wrote:<br>
> <br>
> Quoting Marek Olšák (2018-12-04 14:52:19)<br>
> > CFLAGS="-fno-omit-frame-pointer" \<br>
> > CXXFLAGS="-fno-omit-frame-pointer" \<br>
> > LDFLAGS="-fuse-ld=gold" \<br>
> > meson $reconfigure build \<br>
> > --prefix /usr --libdir /usr/lib/$archdir --buildtype debugoptimized<br>
> > --native-file $llvm_config \<br>
> > -Dgallium-va=false -Dgallium-xvmc=false -Dgallium-omx=disabled<br>
> -Dgallium-xa<br>
> > =false \<br>
> > -Dplatforms=x11,drm,surfaceless -Dgallium-drivers=radeonsi,r300,r600<br>
> \<br>
> > -Ddri-drivers= -Dvulkan-drivers=amd \<br>
> > -Dlibunwind=true<br>
> ><br>
> > Marek<br>
> <br>
> If you want the -DDEBUG added automatically you need a --buildtype=debug,<br>
> --buildtype=debugoptimized doesn't get -DDEBUG.<br>
> <br>
> <br>
> That's a change in behavior compared to autotools, which was always<br>
> debugoptimized.<br>
> <br>
> Marek<br>
<br>
That was changed after the initial meson merge, here's the thread discussing<br>
that: <a href="https://lists.freedesktop.org/archives/mesa-dev/2017-November/175104.html" rel="noreferrer" target="_blank">https://lists.freedesktop.org/archives/mesa-dev/2017-November/175104.html</a></blockquote><div><br></div>It doesn't discuss it.</div><div class="gmail_quote"><br></div><div class="gmail_quote">Autotools doesn't have buildtype=debug (-O0). --enable-debug is debugoptimized (-g -O2 -DDEBUG).<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">Marek<br></div></div>