Revision
103450
Author
larryv@macports.org
Date
2013-02-25 23:46:24 -0800 (Mon, 25 Feb 2013)

Log Message

muniversal-1.0.tcl: Update muniversal_arch_flag_supported.

Now matches trunk's portconfigure::arch_flag_supported as of r103449.

Modified Paths

Diff

Modified: trunk/dports/_resources/port1.0/group/muniversal-1.0.tcl (103449 => 103450)


--- trunk/dports/_resources/port1.0/group/muniversal-1.0.tcl	2013-02-26 07:33:00 UTC (rev 103449)
+++ trunk/dports/_resources/port1.0/group/muniversal-1.0.tcl	2013-02-26 07:46:24 UTC (rev 103450)
@@ -58,23 +58,7 @@
 
 proc muniversal_arch_flag_supported {args} {
     global configure.compiler
-    switch -exact ${configure.compiler} {
-        gcc-4.0 -
-        gcc-4.2 -
-        llvm-gcc-4.2 -
-        clang -
-        apple-gcc-4.0 -
-        apple-gcc-4.2 -
-        macports-clang-2.9 -
-        macports-clang-3.0 -
-        macports-clang-3.1 -
-        macports-clang {
-            return yes
-        }
-        default {
-            return no
-        }
-    }
+    return [regexp {^gcc-4|llvm|apple|clang} ${configure.compiler}]
 }
 
 proc muniversal_get_arch_flag {arch {fortran ""}} {