Skip to content

Commit d48d606

Browse files
authored
[AutoBuild] Throw error if using unsupported platforms with Julia v1.5- (#1020)
1 parent 7698877 commit d48d606

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/AutoBuild.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ function build_tarballs(ARGS, src_name, src_version, sources, script,
123123
return nothing
124124
end
125125

126+
# Throw an error if we're going to build for platforms not supported by Julia v1.5-.
127+
if any(p -> arch(p) == "armv6l" || (Sys.isapple(p) && arch(p) == "aarch64"), platforms) && !occursin(r"1\.[67]", julia_compat)
128+
error("Experimental platforms cannot be used with Julia v1.5-.\nChange `julia_compat` to require at least Julia v1.6")
129+
end
130+
126131
# XXX: These are needed as long as we support old-style sources and
127132
# dependencies. Raise a warning for now, deprecate in BB 0.3+
128133
sources = coerce_source.(sources)

test/building.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ end
293293
Dependency[],
294294
)
295295
end
296+
297+
@test_throws ErrorException build_tarballs(String[], "", v"1.0", GitSource[], "", supported_platforms(; experimental=true), LibraryProduct[], Dependency[])
296298
end
297299

298300
@testset "AnyPlatform" begin

0 commit comments

Comments
 (0)