Skip to content

Commit 0bd5937

Browse files
authored
Make package loadable on previous julia versions (#38)
* Make package loadable on previous julia versions * Fix version check * Move to a file
1 parent 219df8a commit 0bd5937

File tree

4 files changed

+9
-202
lines changed

4 files changed

+9
-202
lines changed

Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ Mmap = "1"
2020
PackageCompiler = "2"
2121
Pkg = "1"
2222
julia = "1.10"
23+
ObjectFile = "0.5"
24+
StructIO = "0.3"
25+
Patchelf_jll = "0.18"
2326

2427
[apps.juliac]
2528

patch.diff

Lines changed: 0 additions & 199 deletions
This file was deleted.

src/JuliaC.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
module JuliaC
22

3+
@static if VERSION >= v"1.12.0-rc1"
34
using Pkg
45
using PackageCompiler
56
using LazyArtifacts
67

7-
module JuliaConfig
8-
include(joinpath(Sys.BINDIR, Base.DATAROOTDIR, "julia", "julia-config.jl"))
9-
end
8+
include("JuliaConfig.jl")
109

1110
Base.@kwdef mutable struct ImageRecipe
1211
# codegen options
@@ -177,5 +176,6 @@ function (@main)(ARGS)
177176
end
178177

179178
precompile(main, (Vector{String},))
179+
end
180180

181181
end # module JuliaC

src/JuliaConfig.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module JuliaConfig
2+
include(joinpath(Sys.BINDIR, Base.DATAROOTDIR, "julia", "julia-config.jl"))
3+
end

0 commit comments

Comments
 (0)