[116300] trunk/dports/_resources/port1.0/group/compilers-1.0.tcl

sean at macports.org sean at macports.org
Thu Jan 23 12:08:27 PST 2014


Revision: 116300
          https://trac.macports.org/changeset/116300
Author:   sean at macports.org
Date:     2014-01-23 12:08:27 -0800 (Thu, 23 Jan 2014)
Log Message:
-----------
compilers-1.0: add avx_compiler_isset proc

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/group/compilers-1.0.tcl

Modified: trunk/dports/_resources/port1.0/group/compilers-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/compilers-1.0.tcl	2014-01-23 20:08:22 UTC (rev 116299)
+++ trunk/dports/_resources/port1.0/group/compilers-1.0.tcl	2014-01-23 20:08:27 UTC (rev 116300)
@@ -330,6 +330,16 @@
     return [expr {[clang_variant_name] ne ""}]
 }
 
+proc avx_compiler_isset {} {
+    global configure.cc
+
+    if {[string match *clang* ${configure.cc}]} {
+        return 1
+    }
+
+    return 0
+}
+
 proc fortran_variant_isset {} {
     return [expr {[fortran_variant_name] ne ""}]
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140123/cff6bc33/attachment.html>


More information about the macports-changes mailing list