Ignore:
Timestamp:
Jan 23, 2014, 8:09:18 PM (5 years ago)
Author:
sean@…
Message:

compilers-1.0: add gcc_variant_name proc

File:
1 edited

Legend:

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

    r116308 r116309  
    366366}
    367367
     368proc gcc_variant_name {} {
     369    global compilers.gcc_variants variations
     370
     371    foreach c ${compilers.gcc_variants} {
     372        # we need to check the default_variants so we can't use variant_isset
     373        if {[info exists variations($c)] && $variations($c) eq "+"} {
     374            return $c
     375        }
     376    }
     377
     378    return ""
     379}
     380
     381proc gcc_variant_isset {} {
     382    return [expr {[gcc_variant_name] ne ""}]
     383}
     384
    368385proc avx_compiler_isset {} {
    369386    global configure.cc
Note: See TracChangeset for help on using the changeset viewer.