/
clang_compilers.tcl
50 lines (43 loc) · 1.52 KB
/
clang_compilers.tcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# add all working Clang compilers to the variable compilers based on ${os.major}
# When adding a new clang version here, make sure to update the
# clang_dependency PortGroup, and add it to any new dependencies of the
# new version.
# clang 11 and older build on 10.6+ (darwin 10)
# clang 7.0 and older build on 10.5+ (darwin 9)
# clang 3.4 and older build on 10.4+ (darwin 8)
# Clang 11 and newer only on Apple Silicon
# Clang 9.0 and newer only on 11+ (Darwin 20)
global os.major
if {${os.major} >= 11} {
lappend compilers macports-clang-12
}
if {${os.major} >= 10} {
lappend compilers macports-clang-11
if {[option build_arch] ne "arm64"} {
lappend compilers macports-clang-10 macports-clang-9.0
if {${os.major} < 20} {
lappend compilers macports-clang-8.0
}
}
}
if {${os.major} >= 9 && ${os.major} < 20} {
lappend compilers macports-clang-7.0 \
macports-clang-6.0 \
macports-clang-5.0
}
# 13 is still pretty new, so add *after* 12 - 5.0 but before versions
# that should only be used for bootstrapping. Will only be used if the
# versions listed earlier don't meet the requirements.
if {${os.major} >= 11} {
lappend compilers macports-clang-13
}
if {${os.major} < 16} {
# The Sierra SDK requires a toolchain that supports class properties
if {${os.major} >= 9} {
lappend compilers macports-clang-3.7
}
lappend compilers macports-clang-3.4
if {${os.major} < 9} {
lappend compilers macports-clang-3.3
}
}