[116301] trunk/dports/_resources/port1.0/group/compilers-1.0.tcl
sean at macports.org
sean at macports.org
Thu Jan 23 12:08:33 PST 2014
Revision: 116301
https://trac.macports.org/changeset/116301
Author: sean at macports.org
Date: 2014-01-23 12:08:33 -0800 (Thu, 23 Jan 2014)
Log Message:
-----------
compilers-1.0: add is_c_only 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:27 UTC (rev 116300)
+++ trunk/dports/_resources/port1.0/group/compilers-1.0.tcl 2014-01-23 20:08:33 UTC (rev 116301)
@@ -380,6 +380,18 @@
return 1
}
+proc compilers.is_c_only {} {
+ global compilers.list
+
+ foreach c {f77 f90 fc} {
+ if {[lsearch -exact ${compilers.list} $c] >= 0} {
+ return 0
+ }
+ }
+
+ return 1
+}
+
proc compilers.setup {args} {
global cdb compilers.variants compilers.clang_variants compilers.gcc_variants
global compilers.dragonegg_variants compilers.fortran_variants
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140123/1993ec94/attachment.html>
More information about the macports-changes
mailing list