aboutsummaryrefslogtreecommitdiff
path: root/mesalib/scons
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/scons')
-rw-r--r--mesalib/scons/llvm.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/mesalib/scons/llvm.py b/mesalib/scons/llvm.py
index 34b58910a..8388d8e9f 100644
--- a/mesalib/scons/llvm.py
+++ b/mesalib/scons/llvm.py
@@ -190,8 +190,10 @@ def generate(env):
pass
env.MergeFlags(cppflags)
- cxxflags = env.backtick('llvm-config --cxxflags').rstrip()
- env.Append(LLVM_CXXFLAGS = cxxflags)
+ # 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']