[Mesa-dev] [PATCH 1/2] configure.ac: add _DEBUG to strip_unwanted_llvm_flags

Rowley, Timothy O timothy.o.rowley at intel.com
Mon Oct 16 16:33:45 UTC 2017


Ping.  This is useful for those building their own llvm.

> On Oct 3, 2017, at 3:23 PM, Rowley, Timothy O <timothy.o.rowley at intel.com> wrote:
> 
> Assert-enabled builds of llvm add _DEBUG to the LLVM_CFLAGS.
> 
> This was causing a crash with swr running the ParaView
> waveletcontour.py test, due to a bug in our _DEBUG code.
> ---
> configure.ac | 1 +
> 1 file changed, 1 insertion(+)
> 
> diff --git a/configure.ac b/configure.ac
> index 903a3979d4..b2768f46c0 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -987,6 +987,7 @@ strip_unwanted_llvm_flags() {
>     echo " `$1` " | sed -E \
>         -e 's/[[[:space:]]]+-m[[^[:space:]]]*//g' \
>         -e 's/[[[:space:]]]+-DNDEBUG[[[:space:]]]/ /g' \
> +        -e 's/[[[:space:]]]+-D_DEBUG[[[:space:]]]/ /g' \
>         -e 's/[[[:space:]]]+-D_GNU_SOURCE[[[:space:]]]/ /g' \
>         -e 's/[[[:space:]]]+-pedantic[[[:space:]]]/ /g' \
>         -e 's/[[[:space:]]]+-W[[^[:space:]]]*//g' \
> -- 
> 2.11.0
> 



More information about the mesa-dev mailing list