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.)
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'):
])
if env['llvm']:
- env.Append(CXXFLAGS = env['LLVM_CXXFLAGS'])
-
source += env.ParseSourceList('Makefile.sources', [
'GALLIVM_SOURCES',
'GALLIVM_CPP_SOURCES'
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()