Changeset 139390 for trunk/dports/math


Ignore:
Timestamp:
Aug 15, 2015, 5:33:49 AM (5 years ago)
Author:
nicos@…
Message:

OpenBLAS-devel: adding warning for disabled instructions depending on compiler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/OpenBLAS-devel/Portfile

    r139233 r139390  
    141141        }
    142142        if {![variant_isset clang]} {
     143            if { ![catch {sysctl hw.optional.avx1_0} has_avx] && $has_avx == 1 } {
     144                ui_msg "Warning: the chosen compiler cannot handle advanced optimisation instructions."
     145                ui_msg "         AVX instructions are disabled."
     146            }
    143147            puts $makeINC "NO_AVX = 1"
    144148        }
Note: See TracChangeset for help on using the changeset viewer.