diff options
author | Paul Oppenheim <poppy@lindenlab.com> | 2008-06-16 09:21:51 +0000 |
---|---|---|
committer | Paul Oppenheim <poppy@lindenlab.com> | 2008-06-16 09:21:51 +0000 |
commit | 916f9af25cee5d10aa5d4d432f939ebb826a6773 (patch) | |
tree | 7134b9239f39bcc5668c5886924f10de3e27e094 /indra/develop.py | |
parent | f540a70546de221b55f0a12b3111902d2ac529a5 (diff) |
"mac cmake build should not be universal by default" changes. Reviewed by bos.
Diffstat (limited to 'indra/develop.py')
-rwxr-xr-x | indra/develop.py | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/indra/develop.py b/indra/develop.py index fb2319ccf6..d41b0568f1 100755 --- a/indra/develop.py +++ b/indra/develop.py @@ -208,12 +208,14 @@ class UnixSetup(PlatformSetup): def arch(self): cpu = os.uname()[-1] - if cpu.endswith('86'): + if cpu.endswith('386'): + cpu = 'i386' + elif cpu.endswith('86'): cpu = 'i686' elif cpu in ('athlon',): cpu = 'i686' elif cpu == 'Power Macintosh': - cpu = 'powerpc' + cpu = 'ppc' return cpu @@ -361,26 +363,31 @@ class DarwinSetup(UnixSetup): return 'darwin' def arch(self): - return 'universal' + if self.unattended == 'TRUE': + return 'universal' + else: + return UnixSetup.arch(self) def cmake_commandline(self, src_dir, build_dir, opts, simple): - arches = '' args = dict( - arches=arches, dir=src_dir, generator=self.generator, opts=quote(opts), standalone=self.standalone, unattended=self.unattended, + universal='', type=self.build_type.upper() ) + if self.unattended == 'TRUE': + args['universal'] = '-DCMAKE_OSX_ARCHITECTURES:STRING=\'i386;ppc\'' #if simple: # return 'cmake %(opts)s %(dir)r' % args return ('cmake -G %(generator)r ' '-DCMAKE_BUILD_TYPE:STRING=%(type)s ' '-DSTANDALONE:BOOL=%(standalone)s ' '-DUNATTENDED:BOOL=%(unattended)s ' - '%(arches)s %(opts)s %(dir)r' % args) + '%(universal)s ' + '%(opts)s %(dir)r' % args) def run_build(self, opts, targets): cwd = os.getcwd() |