Skip to content

Commit b99d886

Browse files
authored
Error out if trying to use in Julia > v1.7 (#1318)
1 parent 2a1409e commit b99d886

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

docs/src/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ The purpose of the [`BinaryBuilder.jl`](https://github.com/JuliaPackaging/Binary
44

55
Note that at this time, BinaryBuilder itself runs on Linux `x86_64` and macOS `x86_64` systems only, with Windows support under active development. On macOS and Windows, you must have `docker` installed as the backing virtualization engine. Note that Docker Desktop is the recommended version; if you have Docker Machine installed it may not work correctly or may need additional configuration.
66

7+
!!! warn
8+
9+
This package currently requires Julia v1.7. Contribute to [JuliaPackaging/JLLPrefixes.jl#6](https://github.com/JuliaPackaging/JLLPrefixes.jl/issues/6) if you care about supporting newer versions of Julia.
10+
711
## Project flow
812

913
Suppose that you have a Julia package `Foo.jl` which wants to use a compiled `libfoo` shared library. As your first step in writing `Foo.jl`, you may compile `libfoo` locally on your own machine with your system compiler, then using `Libdl.dlopen()` to open the library, and `ccall()` to call into the exported functions. Once you have written your C bindings in Julia, you will naturally desire to share the fruits of your labor with the rest of the world, and this is where `BinaryBuilder` can help you. Not only will `BinaryBuilder` aid you in constructing compiled versions of all your dependencies, but it will also build a wrapper Julia package (referred to as a [JLL package](jll.md)) to aid in installation, versioning, and build product localization.

src/BinaryBuilder.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ include("Declarative.jl")
4444
include("Logging.jl")
4545

4646
function __init__()
47+
if Base.thisminor(VERSION) >= v"1.8"
48+
error("""
49+
BinaryBuilder supports only Julia v1.7.
50+
Contribute to JuliaPackaging/JLLPrefixes.jl#6 (<https://github.com/JuliaPackaging/JLLPrefixes.jl/issues/6>)
51+
if you care about supporting newer versions of Julia.
52+
""")
53+
end
4754
# If we're running on Azure, enable azure logging:
4855
if !isempty(get(ENV, "AZP_TOKEN", ""))
4956
enable_azure_logging()

0 commit comments

Comments
 (0)