Revision
103449
Author
larryv@macports.org
Date
2013-02-25 23:33:00 -0800 (Mon, 25 Feb 2013)

Log Message

portconfigure.tcl: Correct behavior of arch_flag_supported.

Prior to r103211, it also returned false for "cc", "gcc", and "gcc-3.3".

Modified Paths

Diff

Modified: trunk/base/src/port1.0/portconfigure.tcl (103448 => 103449)


--- trunk/base/src/port1.0/portconfigure.tcl	2013-02-26 07:21:27 UTC (rev 103448)
+++ trunk/base/src/port1.0/portconfigure.tcl	2013-02-26 07:33:00 UTC (rev 103449)
@@ -358,8 +358,7 @@
 
 # internal proc to determine if the compiler supports -arch
 proc portconfigure::arch_flag_supported {compiler} {
-    return [expr {[string first "macports-gcc" $compiler] != 0 &&
-                  [string first "macports-dragonegg" $compiler] != 0}]
+    return [regexp {^gcc-4|llvm|apple|clang} $compiler]
 }
 
 # maps compiler names to the port that provides them