|
186 | 186 | function Base.show(io::IO, p::Platform)
|
187 | 187 | str = string(platform_name(p), " ", arch(p))
|
188 | 188 | # Add on all the other tags not covered by os/arch:
|
189 |
| - other_tags = sort(collect(filter(kv -> kv[1] ∉ ("os", "arch"), tags(p)))) |
| 189 | + other_tags = sort!(filter!(kv -> kv[1] ∉ ("os", "arch"), collect(tags(p)))) |
190 | 190 | if !isempty(other_tags)
|
191 | 191 | str = string(str, " {", join([string(k, "=", v) for (k, v) in other_tags], ", "), "}")
|
192 | 192 | end
|
@@ -835,7 +835,7 @@ Inspects the current Julia process to determine the libgfortran version this Jul
|
835 | 835 | linked against (if any).
|
836 | 836 | """
|
837 | 837 | function detect_libgfortran_version()
|
838 |
| - libgfortran_paths = filter(x -> occursin("libgfortran", x), Libdl.dllist()) |
| 838 | + libgfortran_paths = filter!(x -> occursin("libgfortran", x), Libdl.dllist()) |
839 | 839 | if isempty(libgfortran_paths)
|
840 | 840 | # One day, I hope to not be linking against libgfortran in base Julia
|
841 | 841 | return nothing
|
@@ -865,7 +865,7 @@ it is linked against (if any). `max_minor_version` is the latest version in the
|
865 | 865 | 3.4 series of GLIBCXX where the search is performed.
|
866 | 866 | """
|
867 | 867 | function detect_libstdcxx_version(max_minor_version::Int=30)
|
868 |
| - libstdcxx_paths = filter(x -> occursin("libstdc++", x), Libdl.dllist()) |
| 868 | + libstdcxx_paths = filter!(x -> occursin("libstdc++", x), Libdl.dllist()) |
869 | 869 | if isempty(libstdcxx_paths)
|
870 | 870 | # This can happen if we were built by clang, so we don't link against
|
871 | 871 | # libstdc++ at all.
|
@@ -897,7 +897,7 @@ between Julia and LLVM; they must match.
|
897 | 897 | """
|
898 | 898 | function detect_cxxstring_abi()
|
899 | 899 | # First, if we're not linked against libstdc++, then early-exit because this doesn't matter.
|
900 |
| - libstdcxx_paths = filter(x -> occursin("libstdc++", x), Libdl.dllist()) |
| 900 | + libstdcxx_paths = filter!(x -> occursin("libstdc++", x), Libdl.dllist()) |
901 | 901 | if isempty(libstdcxx_paths)
|
902 | 902 | # We were probably built by `clang`; we don't link against `libstdc++`` at all.
|
903 | 903 | return nothing
|
@@ -1080,7 +1080,7 @@ function select_platform(download_info::Dict, platform::AbstractPlatform = HostP
|
1080 | 1080 | # We prefer these better matches, and secondarily reverse-sort by triplet so
|
1081 | 1081 | # as to generally choose the latest release (e.g. a `libgfortran5` tarball
|
1082 | 1082 | # over a `libgfortran3` tarball).
|
1083 |
| - ps = sort(ps, lt = (a, b) -> begin |
| 1083 | + sort!(ps, lt = (a, b) -> begin |
1084 | 1084 | loss_a = match_loss(a, platform)
|
1085 | 1085 | loss_b = match_loss(b, platform)
|
1086 | 1086 | if loss_a != loss_b
|
|
0 commit comments