summaryrefslogtreecommitdiffstats
path: root/scons
diff options
context:
space:
mode:
Diffstat (limited to 'scons')
-rw-r--r--scons/llvm.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scons/llvm.py b/scons/llvm.py
index c1c37362d3c..34b58910aa3 100644
--- a/scons/llvm.py
+++ b/scons/llvm.py
@@ -190,6 +190,9 @@ def generate(env):
pass
env.MergeFlags(cppflags)
+ cxxflags = env.backtick('llvm-config --cxxflags').rstrip()
+ env.Append(LLVM_CXXFLAGS = cxxflags)
+
components = ['engine', 'bitwriter', 'x86asmprinter']
if llvm_version >= distutils.version.LooseVersion('3.1'):