[131321] trunk/dports/_resources/port1.0/group/ compiler_blacklist_versions-1.0.tcl

ryandesign at macports.org ryandesign at macports.org
Fri Jan 9 11:07:32 PST 2015


Revision: 131321
          https://trac.macports.org/changeset/131321
Author:   ryandesign at macports.org
Date:     2015-01-09 11:07:32 -0800 (Fri, 09 Jan 2015)
Log Message:
-----------
compiler_blacklist_versions-1.0.tcl: don't check compiler versions on non-Darwin systems

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

Modified: trunk/dports/_resources/port1.0/group/compiler_blacklist_versions-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/compiler_blacklist_versions-1.0.tcl	2015-01-09 18:51:56 UTC (rev 131320)
+++ trunk/dports/_resources/port1.0/group/compiler_blacklist_versions-1.0.tcl	2015-01-09 19:07:32 UTC (rev 131321)
@@ -1,7 +1,7 @@
 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 #
-# Copyright (c) 2012-2013 The MacPorts Project
+# Copyright (c) 2012-2013, 2015 The MacPorts Project
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
@@ -32,6 +32,10 @@
 #
 # Including this PortGroup in a Portfile enhances the compiler.blacklist option
 # to support blacklisting only specific build numbers of the given compiler.
+# This PortGroup only knows about the build numbering scheme used by Apple's
+# versions of gcc, llvm-gcc and clang provided with Xcode and the command line
+# tools. As such, on platforms other than Darwin, any blacklist entries
+# specifying a compiler build number will just be removed without being checked.
 #
 # Examples:
 #
@@ -61,10 +65,14 @@
 option_proc compiler.blacklist compiler_blacklist_versions._set_compiler_blacklist
 
 proc compiler_blacklist_versions._set_compiler_blacklist {option action args} {
+    global os.platform
     if {${action} ne "set"} return
     foreach blacklist [option ${option}] {
         if {[llength ${blacklist}] > 1} {
             compiler.blacklist-delete ${blacklist}
+            if {${os.platform} ne "darwin"} {
+                continue
+            }
             set compiler [lindex ${blacklist} 0]
             set comparisons [lrange ${blacklist} 1 end]
             set compiler_version [compiler_blacklist_versions._get_compiler_version ${compiler}]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150109/5ab02964/attachment.html>


More information about the macports-changes mailing list