Changeset 755


Ignore:
Timestamp:
Jan 20, 2005, 4:20:00 PM (20 years ago)
Author:
ole
Message:

Added detection of 64 architecture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/compile.py

    r680 r755  
    194194    # Compile
    195195    #
    196    
    197196    s = "%s -c %s -I%s -o %s.o -Wall -O3" %(compiler, FN, include, root)
     197
     198    if os.name == 'posix' and os.uname()[4] == 'x86_64':
     199      #Extra flags for AMD 64
     200      s += ' -fPIC -amd64'
     201     
    198202    if verbose:
    199203      print s
Note: See TracChangeset for help on using the changeset viewer.