Ignore:
Timestamp:
Jan 9, 2015, 7:07:32 PM (4 years ago)
Author:
ryandesign@…
Message:

compiler_blacklist_versions-1.0.tcl: don't check compiler versions on non-Darwin systems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/compiler_blacklist_versions-1.0.tcl

    r112784 r131321  
    22# $Id$
    33#
    4 # Copyright (c) 2012-2013 The MacPorts Project
     4# Copyright (c) 2012-2013, 2015 The MacPorts Project
    55# All rights reserved.
    66#
     
    3333# Including this PortGroup in a Portfile enhances the compiler.blacklist option
    3434# to support blacklisting only specific build numbers of the given compiler.
     35# This PortGroup only knows about the build numbering scheme used by Apple's
     36# versions of gcc, llvm-gcc and clang provided with Xcode and the command line
     37# tools. As such, on platforms other than Darwin, any blacklist entries
     38# specifying a compiler build number will just be removed without being checked.
    3539#
    3640# Examples:
     
    6266
    6367proc compiler_blacklist_versions._set_compiler_blacklist {option action args} {
     68    global os.platform
    6469    if {${action} ne "set"} return
    6570    foreach blacklist [option ${option}] {
    6671        if {[llength ${blacklist}] > 1} {
    6772            compiler.blacklist-delete ${blacklist}
     73            if {${os.platform} ne "darwin"} {
     74                continue
     75            }
    6876            set compiler [lindex ${blacklist} 0]
    6977            set comparisons [lrange ${blacklist} 1 end]
Note: See TracChangeset for help on using the changeset viewer.