<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Wed, Dec 12, 2018 at 5:14 PM Dylan Baker <<a href="mailto:dylan@pnwbakers.com">dylan@pnwbakers.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Quoting Marek Olšák (2018-12-12 12:42:01)<br>
> Most assertions and checks are enabled, because NDEBUG is not defined, but<br>
> DEBUG is not defined either, which is a Mesa-specific definition.<br>
> <br>
> The default debug build for autotools is debugoptimized (-g -O2 -DDEBUG). meson<br>
> changed that behavior by removing -DDEBUG. Autotools doesn't have what meson<br>
> calls "debug", which indicates that most people don't want to use "debug" much.<br>
> People who wanted to -O0 had to set CFLAGS. Now people who want the autotools<br>
> debug build have to add -DDEBUG into CFLAGS.<br>
> <br>
> On top of that, I discovered a 3rd issue with meson:<br>
> * meson --reconfigure doesn't re-run llvm-config.<br>
> <br>
> Marek<br>
<br>
Don't use --reconfigure, you're abusing it to get it to do what you want.<br>
--reconfigure is for handling cases where an option has been removed or renamed<br>
and meson can't figure out how to fix it itself, so you smash it with a hammer.<br>
meson configure has an option to force llvm-config (and all dependencies) to be<br>
rechecked. In your wrapper script you'd be better off with something like:<br>
<br>
if [ ! -a $BUILDDIR ]; then<br>
meson $BUILDDIR $OPTIONS<br>
else<br>
meson configure $BUILDDIR $OPTIONS --clearcache<br>
fi<br></blockquote><div><br></div>I'll just do rm -r $BUILDDIR instead of relying on various options that might get broken.</div><div class="gmail_quote"><br></div><div class="gmail_quote">Marek<br></div></div>