Changeset 5007


Ignore:
Timestamp:
Aug 4, 2021 12:20:04 PM (4 months ago)
Author:
toby
Message:

try to fix broken windows build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fsource/SConstruct

    r5006 r5007  
    4141        print(u'Unknown platform: '+sys.platform)
    4242        raise Exception('Unknown platform')
    43     if 'arm' in platform.machine():
     43    if 'arm' in platform.machine() and sys.platform == "darwin":
    4444        bits = 'arm'
    4545    elif platform.architecture()[0] == '64bit':
     
    5353# misc initializations
    5454# need command-line options for fortran command and fortran options
    55 #F2PYflags = '' # compiler options for f2py command
    56 F2PYflags = '-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include' # compiler options for f2py command
    57 if 'arm' in platform.machine():
     55F2PYflags = '' # compiler options for f2py command
     56if 'arm' in platform.machine() and sys.platform == "darwin":
    5857    F2PYflags = '-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include' # compiler options for f2py command
    5958F2PYpath = ARGUMENTS.get('F2PYpath', '')
     
    239238version = str(int(versions[0])) + '.' + str(int(versions[1]))
    240239PlatformBits = '64bits'
    241 if 'arm' in platform.machine():
     240if 'arm' in platform.machine() and sys.platform == "darwin":
    242241   PlatformBits = 'arm'
    243242if '32' in platform.architecture()[0]:
Note: See TracChangeset for help on using the changeset viewer.