[139390] trunk/dports/math/OpenBLAS-devel/Portfile
nicos at macports.org
nicos at macports.org
Fri Aug 14 22:33:49 PDT 2015
Revision: 139390
https://trac.macports.org/changeset/139390
Author: nicos at macports.org
Date: 2015-08-14 22:33:49 -0700 (Fri, 14 Aug 2015)
Log Message:
-----------
OpenBLAS-devel: adding warning for disabled instrutions depending on compiler
Modified Paths:
--------------
trunk/dports/math/OpenBLAS-devel/Portfile
Modified: trunk/dports/math/OpenBLAS-devel/Portfile
===================================================================
--- trunk/dports/math/OpenBLAS-devel/Portfile 2015-08-15 05:31:40 UTC (rev 139389)
+++ trunk/dports/math/OpenBLAS-devel/Portfile 2015-08-15 05:33:49 UTC (rev 139390)
@@ -140,6 +140,10 @@
puts $makeINC "NO_LAPACK = 1"
}
if {![variant_isset clang]} {
+ if { ![catch {sysctl hw.optional.avx1_0} has_avx] && $has_avx == 1 } {
+ ui_msg "Warning: the chosen compiler cannot handle advanced optimisation instructions."
+ ui_msg " AVX instructions are disabled."
+ }
puts $makeINC "NO_AVX = 1"
}
close $makeINC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150814/74dae39b/attachment.html>
More information about the macports-changes
mailing list