Ignore:
Timestamp:
May 13, 2013, 12:26:09 PM (7 years ago)
Author:
vince@…
Message:

Fix AVX processor detection for versions of MacOS < 10.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/atlas/Portfile

    r105864 r106013  
    152152# AVX or higher?
    153153
    154 if {${os.major} > 10 && \
    155         ![catch {sysctl hw.optional.avx1_0} result1] && $result1 == 1} {
     154if {(${os.major} > 10 && \
     155        (![catch {sysctl hw.optional.avx1_0} result1] && $result1 == 1)) ||
     156                (![catch {sysctl hw.cpufamily} result2] && $result2 == 1418770316)} {
    156157
    157158    set has_avx "yes"
Note: See TracChangeset for help on using the changeset viewer.