Changeset 136117


Ignore:
Timestamp:
May 11, 2015, 7:40:41 PM (4 years ago)
Author:
sean@…
Message:

compilers-1.0: remove assumption about clang 3.x version; no behavioral change

File:
1 edited

Legend:

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

    r136116 r136117  
    7878}
    7979
    80 set clang_versions {0 1 2 3 4 5}
     80set clang_versions {30 31 32 33 34 35}
    8181foreach v ${clang_versions} {
    82     lappend compilers.clang_variants clang3$v
    83     set cdb(clang3$v,variant)  clang3$v
    84     set cdb(clang3$v,compiler) macports-clang-3.$v
    85     set cdb(clang3$v,descrip)  "MacPorts clang 3.$v"
    86     set cdb(clang3$v,depends)  port:clang-3.$v
    87     set cdb(clang3$v,dependsl) ""
    88     set cdb(clang3$v,dependsd) ""
    89     set cdb(clang3$v,dependsa) clang-3.$v
    90     set cdb(clang3$v,conflict) ""
    91     set cdb(clang3$v,cc)       ${prefix}/bin/clang-mp-3.$v
    92     set cdb(clang3$v,cxx)      ${prefix}/bin/clang++-mp-3.$v
    93     set cdb(clang3$v,cpp)      "${prefix}/bin/clang-mp-3.$v -E"
    94     set cdb(clang3$v,objc)     ""
    95     set cdb(clang3$v,fc)       ""
    96     set cdb(clang3$v,f77)      ""
    97     set cdb(clang3$v,f90)      ""
     82    # if the string is more than one character insert a '.' into it: e.g 33 -> 3.3
     83    set version $v
     84    if {[string length $v] > 1} {
     85        set version [string index $v 0].[string index $v 1]
     86    }
     87    lappend compilers.clang_variants clang$v
     88    set cdb(clang$v,variant)  clang$v
     89    set cdb(clang$v,compiler) macports-clang-$version
     90    set cdb(clang$v,descrip)  "MacPorts clang $version"
     91    set cdb(clang$v,depends)  port:clang-$version
     92    set cdb(clang$v,dependsl) ""
     93    set cdb(clang$v,dependsd) ""
     94    set cdb(clang$v,dependsa) clang-$version
     95    set cdb(clang$v,conflict) ""
     96    set cdb(clang$v,cc)       ${prefix}/bin/clang-mp-$version
     97    set cdb(clang$v,cxx)      ${prefix}/bin/clang++-mp-$version
     98    set cdb(clang$v,cpp)      "${prefix}/bin/clang-mp-$version -E"
     99    set cdb(clang$v,objc)     ""
     100    set cdb(clang$v,fc)       ""
     101    set cdb(clang$v,f77)      ""
     102    set cdb(clang$v,f90)      ""
    98103}
    99104
Note: See TracChangeset for help on using the changeset viewer.