diff options
author | Andrew Meadows <andrew@lindenlab.com> | 2008-10-10 16:04:02 +0000 |
---|---|---|
committer | Andrew Meadows <andrew@lindenlab.com> | 2008-10-10 16:04:02 +0000 |
commit | 5f3875018ee9977917d6fff5f2c2cf87db41ce3e (patch) | |
tree | 63ae291bed617d557b5c745a614a2e1cf21e9469 /indra/develop.py | |
parent | 4ff16b735f59326514ad92ec38e3261cd996e05c (diff) |
svn merge -r99056:99248 svn+ssh://svn.lindenlab.com/svn/linden/branches/andrew/gcc-4-003-for-merge
Diffstat (limited to 'indra/develop.py')
-rwxr-xr-x | indra/develop.py | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/indra/develop.py b/indra/develop.py index c3b1b12652..5078820eaa 100755 --- a/indra/develop.py +++ b/indra/develop.py @@ -218,11 +218,15 @@ class UnixSetup(PlatformSetup): elif cpu == 'Power Macintosh': cpu = 'ppc' return cpu - + class LinuxSetup(UnixSetup): def __init__(self): super(LinuxSetup, self).__init__() + try: + self.debian_sarge = open('/etc/debian_version').read().strip() == '3.1' + except: + self.debian_sarge = False def os(self): return 'linux' @@ -234,6 +238,11 @@ class LinuxSetup(UnixSetup): if self.arch() == 'i686' and self.is_internal_tree(): return ['viewer-' + platform_build, 'server-' + platform_build] + elif self.arch() == 'x86_64' and self.is_internal_tree(): + # the viewer does not build in 64bit -- kdu5 issues + # we can either use openjpeg, or overhaul our viewer to handle kdu5 or higher + # doug knows about kdu issues + return ['server-' + platform_build] else: return ['viewer-' + platform_build] @@ -265,18 +274,16 @@ class LinuxSetup(UnixSetup): distcc = [] baseonly = False if 'server' in build_dir: - gcc33 = distcc + self.find_in_path('g++-3.3', 'g++', baseonly) - args.update({'cxx':' '.join(gcc33), 'server':'ON', - 'viewer':'OFF'}) + gcc = distcc + self.find_in_path( + self.debian_sarge and 'g++-3.3' or 'g++-4.1', + 'g++', baseonly) + args.update({'cxx': ' '.join(gcc), 'server': 'ON', + 'viewer': 'OFF'}) else: gcc41 = distcc + self.find_in_path('g++-4.1', 'g++', baseonly) - args.update({'cxx': ' '.join(gcc41), 'server':'OFF', - 'viewer':'ON'}) - #if simple: - # return (('cmake %(opts)s ' - # '-DSERVER:BOOL=%(server)s ' - # '-DVIEWER:BOOL=%(viewer)s ' - # '%(dir)r') % args) + args.update({'cxx': ' '.join(gcc41), + 'server': 'OFF', + 'viewer': 'ON'}) cmd = (('cmake -DCMAKE_BUILD_TYPE:STRING=%(type)s ' '-G %(generator)r -DSERVER:BOOL=%(server)s ' '-DVIEWER:BOOL=%(viewer)s -DSTANDALONE:BOOL=%(standalone)s ' |