path: root/scons
diff options
authorAlexander von Gluck IV <>2013-10-15 12:08:59 -0500
committerAlexander von Gluck IV <>2013-10-15 22:12:18 -0500
commit94d05bf87a21bd364e84f699a0064e5fba58a6f9 (patch)
tree28bb968fc19f476bd83888802e9d65dab0a3f962 /scons
parent85d7f6779fb007e8d0530adbdb9dc97294a0b67e (diff)
scons: Fix build when rtti is disabled
* The rtti fix actually dug up a bug in the scons build scripts. * Autotools took the LLVM cpp and cxx flags, while scons only took the cpp flags. * This grabs the cxx flags and applies them where needed. We may want to make the same change for the llvm cpp flags in scons. * The only linux platform I can find with LLVM no-rtti is Ubuntu. * Fixes bug #70471 Tested-by: Vinson Lee <>
Diffstat (limited to 'scons')
1 files changed, 3 insertions, 0 deletions
diff --git a/scons/ b/scons/
index c1c37362d3..34b58910aa 100644
--- a/scons/
+++ b/scons/
@@ -190,6 +190,9 @@ def generate(env):
+ cxxflags = env.backtick('llvm-config --cxxflags').rstrip()
+ env.Append(LLVM_CXXFLAGS = cxxflags)
components = ['engine', 'bitwriter', 'x86asmprinter']
if llvm_version >= distutils.version.LooseVersion('3.1'):