[Mesa-dev] [PATCH] scons: Simplified fix of llvm cxxflags
Vinson Lee
vlee at freedesktop.org
Thu Oct 17 08:05:26 CEST 2013
On Wed, Oct 16, 2013 at 6:26 PM, Alexander von Gluck IV
<kallisti5 at unixzen.com> wrote:
> * Based on ideas of Jose Fonseca
> * A rework of ce8eadb6e8
> ---
> scons/llvm.py | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/scons/llvm.py b/scons/llvm.py
> index c1c3736..8388d8e 100644
> --- a/scons/llvm.py
> +++ b/scons/llvm.py
> @@ -190,6 +190,11 @@ def generate(env):
> pass
> env.MergeFlags(cppflags)
>
> + # Match llvm --fno-rtti flag
> + cxxflags = env.backtick('llvm-config --cxxflags').split()
> + if '-fno-rtti' in cxxflags:
> + env.Append(CXXFLAGS = ['-fno-rtti'])
> +
> components = ['engine', 'bitwriter', 'x86asmprinter']
>
> if llvm_version >= distutils.version.LooseVersion('3.1'):
> --
> 1.8.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
Fixes the build failure again for me.
Tested-by: Vinson Lee <vlee at freedesktop.org>
More information about the mesa-dev
mailing list