Ignore:
Timestamp:
Dec 24, 2014, 12:42:36 AM (4 years ago)
Author:
sean@…
Message:

compilers-1.0: remove variants that are matched by compiler.blacklist

File:
1 edited

Legend:

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

    r121974 r129984  
    471471    global compilers.dragonegg_variants compilers.fortran_variants
    472472    global compilers.require_fortran compilers.setup_done compilers.list
     473    global compiler.blacklist
    473474
    474475    if {!${compilers.setup_done}} {
     
    529530        }
    530531
     532        # also remove compilers blacklisted
     533        foreach compiler ${compiler.blacklist} {
     534            set matched no
     535            foreach variant ${compilers.variants} {
     536                if {[string match $compiler $cdb($variant,compiler)]} {
     537                    set matched yes
     538                    set remove_list [remove_from_list $remove_list $cdb($variant,variant)]
     539                }
     540            }
     541
     542            if {!$matched} {
     543                ui_debug "Unmatched blacklisted compiler: $compiler"
     544            }
     545        }
     546
    531547        # remove duplicates
    532548        set duplicates {}
Note: See TracChangeset for help on using the changeset viewer.