Changeset 5917


Ignore:
Timestamp:
Nov 6, 2008, 5:18:12 PM (16 years ago)
Author:
ole
Message:

Included compile flag for Itanium 64 bit such as the ANU SF super computer.
Most tests pass except for CRC checksums and one other minor thing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/utilities/compile.py

    r5897 r5917  
    261261            %(compiler, FN, python_include, utilities_include_dir, root)
    262262
    263     if os.name == 'posix' and os.uname()[4] == 'x86_64':
    264       #Extra flags for 64 bit architectures
    265       #Second clause will always fail on Win32 because uname is UNIX specific
    266       #but won't get past first clause
    267 
    268       #FIXME: Which one?
    269       #s += ' -fPIC'
    270       s += ' -fPIC -m64'
     263    if os.name == 'posix' and os.uname()[4] in ['x86_64', 'ia64']:
     264      # Extra flags for 64 bit architectures.
     265      #   AMD Opteron will give x86_64
     266      #   Itanium will give ia64
     267      #
     268      # Second clause will always fail on Win32 because uname is UNIX specific
     269      # but won't get past first clause
     270
     271      s += ' -fPIC' # Use position independent code for 64 bit archs
     272      #s += ' -m64' # Used to be necessary for AMD Opteron
    271273     
    272274     
Note: See TracChangeset for help on using the changeset viewer.