Merge pull request #5444 from hifi/fix-tds-inputoutput
[mono-project.git] / packaging / MacSDK / mono-llvm.py
blobbcb1e7501a51e202d1e488e6c7c990a532b50ba9
1 import os
4 class MonoLlvmPackage (GitHubPackage):
6 def __init__(self):
7 GitHubPackage.__init__(self, 'mono', 'llvm', '3.0',
8 revision='8b1520c8aae53e219cf80cdc0f02ad96600887d6',
9 configure_flags=[
10 '--enable-optimized',
11 '--enable-assertions=no',
12 '--enable-targets="x86,x86_64"']
15 # This package would like to be lipoed.
16 self.needs_lipo = True
18 # TODO: find out which flags are causing issues. reset ld_flags for the
19 # package
20 self.ld_flags = []
21 self.cpp_flags = []
23 def arch_build(self, arch):
24 Package.profile.arch_build(arch, self)
25 if arch == 'darwin-64': # 64-bit build pass
26 self.local_configure_flags.extend(['--build=x86_64-apple-darwin11.2.0'])
28 if arch == 'darwin-32':
29 self.local_configure_flags.extend(['--build=i386-apple-darwin11.2.0'])
31 # LLVM says that libstdc++4.6 is broken and we should use libstdc++4.7.
32 # This switches it to the right libstdc++.
33 if Package.profile.name == 'darwin':
34 self.local_configure_flags.extend(['--enable-libcpp=yes'])
36 MonoLlvmPackage()