Revert "scons: Fix build when rtti is disabled"
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 16 Oct 2013 22:05:51 +0000 (15:05 -0700)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 16 Oct 2013 22:05:51 +0000 (15:05 -0700)
This reverts commit 94d05bf87a21bd364e84f699a0064e5fba58a6f9 as it has a
few problems:

- it breaks windows builds becuase env[LLVM_CXXFLAGS] is never set there

- it is merging not only rtti, but the whole cxxflags (defines etc)
  which has proven to be a source of troubles (breaks debugging etc.)

scons/llvm.py
src/gallium/auxiliary/SConscript
src/gallium/drivers/llvmpipe/SConscript

index 34b58910aa3a2578df26c38643387da28b853562..c1c37362d3c464902ed679edc8ada222739c1c02 100644 (file)
@@ -190,9 +190,6 @@ 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'):
index 3ac3112255cd96f2ee9dba31d4d3125c449970af..31dfed316aa04017c03dd1a938838398e906b1af 100644 (file)
@@ -46,8 +46,6 @@ source = env.ParseSourceList('Makefile.sources', [
 ])
 
 if env['llvm']:
-    env.Append(CXXFLAGS = env['LLVM_CXXFLAGS'])
-
     source += env.ParseSourceList('Makefile.sources', [
         'GALLIVM_SOURCES',
         'GALLIVM_CPP_SOURCES'
index 71faee245c064682274823ff77fd9863de86fa4f..20500fd834ff41121c9bebae8c8f8b95999c18e3 100644 (file)
@@ -10,14 +10,13 @@ if not env['llvm']:
 env = env.Clone()
 
 llvmpipe = env.ConvenienceLibrary(
-    target = 'llvmpipe',
-    source = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
-)
-
-env.Append(CXXFLAGS = env['LLVM_CXXFLAGS'])
+       target = 'llvmpipe',
+       source = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
+       )
 
 env.Alias('llvmpipe', llvmpipe)
 
+
 if not env['embedded']:
     env = env.Clone()