Changeset b9c8fc5 in sasview


Ignore:
Timestamp:
Apr 3, 2014 2:56:01 AM (10 years ago)
Author:
ajj
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
307fa4f
Parents:
b6a181b
Message:

Updated setup.py to allow successful build on OS X 10.9 with clang without breaking other unix builds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    r1829835 rb9c8fc5  
    9090# Platform-specific link options 
    9191platform_lopt = {'msvc' : ['/MANIFEST']} 
    92 platform_copt = {'unix' : ['-Wno-error=unused-command-line-argument-hard-error-in-future']} 
     92 
     93# Set copts to get compile working on OS X >= 10.9 using clang 
     94if sys.platform =='darwin': 
     95    try: 
     96        darwin_ver = int(os.uname()[2].split('.')[0]) 
     97        if darwin_ver >= 13: 
     98            platform_copt = {'unix' : ['-Wno-error=unused-command-line-argument-hard-error-in-future']} 
     99    except: 
     100        print "PROBLEM determining Darwin version" 
     101 
    93102 
    94103 
Note: See TracChangeset for help on using the changeset viewer.