Skip to content

Commit aa03b71

Browse files
allow compiling stdlib jlls & precompile __init__'s
1 parent 7024b73 commit aa03b71

File tree

22 files changed

+21
-22
lines changed

22 files changed

+21
-22
lines changed

stdlib/CompilerSupportLibraries_jll/src/CompilerSupportLibraries_jll.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
baremodule CompilerSupportLibraries_jll
66
using Base, Libdl, Base.BinaryPlatforms
7-
Base.Experimental.@compiler_options compile=min optimize=0 infer=false
87

98
const PATH_list = String[]
109
const LIBPATH_list = String[]
@@ -68,6 +67,7 @@ function __init__()
6867
LIBPATH[] = dirname(libgcc_s_path)
6968
push!(LIBPATH_list, LIBPATH[])
7069
end
70+
precompile(Tuple{typeof(__init__)})
7171

7272
# JLLWrappers API compatibility shims. Note that not all of these will really make sense.
7373
# For instance, `find_artifact_dir()` won't actually be the artifact directory, because

stdlib/GMP_jll/src/GMP_jll.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
## dummy stub for https://github.com/JuliaBinaryWrappers/GMP_jll.jl
44
baremodule GMP_jll
55
using Base, Libdl
6-
Base.Experimental.@compiler_options compile=min optimize=0 infer=false
76

87
const PATH_list = String[]
98
const LIBPATH_list = String[]
@@ -39,6 +38,7 @@ function __init__()
3938
LIBPATH[] = dirname(libgmp_path)
4039
push!(LIBPATH_list, LIBPATH[])
4140
end
41+
precompile(Tuple{typeof(__init__)})
4242

4343
# JLLWrappers API compatibility shims. Note that not all of these will really make sense.
4444
# For instance, `find_artifact_dir()` won't actually be the artifact directory, because

stdlib/LLD_jll/src/LLD_jll.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
baremodule LLD_jll
66
using Base, Libdl
7-
Base.Experimental.@compiler_options compile=min optimize=0 infer=false
87

98
const PATH_list = String[]
109
const LIBPATH_list = String[]
@@ -95,6 +94,7 @@ function __init__()
9594
end
9695
LIBPATH[] = join(LIBPATH_list, pathsep)
9796
end
97+
precompile(Tuple{typeof(__init__)})
9898

9999
# JLLWrappers API compatibility shims. Note that not all of these will really make sense.
100100
# For instance, `find_artifact_dir()` won't actually be the artifact directory, because

stdlib/LLVMLibUnwind_jll/src/LLVMLibUnwind_jll.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
baremodule LLVMLibUnwind_jll
66
using Base, Libdl
7-
Base.Experimental.@compiler_options compile=min optimize=0 infer=false
87

98
const PATH_list = String[]
109
const LIBPATH_list = String[]
@@ -30,6 +29,7 @@ function __init__()
3029
push!(LIBPATH_list, LIBPATH[])
3130
end
3231
end
32+
precompile(Tuple{typeof(__init__)})
3333

3434
# JLLWrappers API compatibility shims. Note that not all of these will really make sense.
3535
# For instance, `find_artifact_dir()` won't actually be the artifact directory, because

stdlib/LibCURL_jll/src/LibCURL_jll.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
baremodule LibCURL_jll
66
using Base, Libdl, nghttp2_jll
7-
Base.Experimental.@compiler_options compile=min optimize=0 infer=false
87

98
const PATH_list = String[]
109
const LIBPATH_list = String[]
@@ -33,6 +32,7 @@ function __init__()
3332
LIBPATH[] = dirname(libcurl_path)
3433
push!(LIBPATH_list, LIBPATH[])
3534
end
35+
precompile(Tuple{typeof(__init__)})
3636

3737
# JLLWrappers API compatibility shims. Note that not all of these will really make sense.
3838
# For instance, `find_artifact_dir()` won't actually be the artifact directory, because

stdlib/LibGit2_jll/src/LibGit2_jll.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
baremodule LibGit2_jll
66
using Base, Libdl, MbedTLS_jll, LibSSH2_jll
7-
Base.Experimental.@compiler_options compile=min optimize=0 infer=false
87

98
const PATH_list = String[]
109
const LIBPATH_list = String[]
@@ -33,6 +32,7 @@ function __init__()
3332
LIBPATH[] = dirname(libgit2_path)
3433
push!(LIBPATH_list, LIBPATH[])
3534
end
35+
precompile(Tuple{typeof(__init__)})
3636

3737
# JLLWrappers API compatibility shims. Note that not all of these will really make sense.
3838
# For instance, `find_artifact_dir()` won't actually be the artifact directory, because

stdlib/LibSSH2_jll/src/LibSSH2_jll.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
baremodule LibSSH2_jll
66
using Base, Libdl, MbedTLS_jll
7-
Base.Experimental.@compiler_options compile=min optimize=0 infer=false
87

98
const PATH_list = String[]
109
const LIBPATH_list = String[]
@@ -33,6 +32,7 @@ function __init__()
3332
LIBPATH[] = dirname(libssh2_path)
3433
push!(LIBPATH_list, LIBPATH[])
3534
end
35+
precompile(Tuple{typeof(__init__)})
3636

3737

3838
# JLLWrappers API compatibility shims. Note that not all of these will really make sense.

stdlib/LibUV_jll/src/LibUV_jll.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
baremodule LibUV_jll
66
using Base, Libdl
7-
Base.Experimental.@compiler_options compile=min optimize=0 infer=false
87

98
# NOTE: This file is currently empty, as we link libuv statically for now.
109

stdlib/LibUnwind_jll/src/LibUnwind_jll.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
baremodule LibUnwind_jll
66
using Base, Libdl
7-
Base.Experimental.@compiler_options compile=min optimize=0 infer=false
87

98
const PATH_list = String[]
109
const LIBPATH_list = String[]
@@ -30,6 +29,7 @@ function __init__()
3029
push!(LIBPATH_list, LIBPATH[])
3130
end
3231
end
32+
precompile(Tuple{typeof(__init__)})
3333

3434
# JLLWrappers API compatibility shims. Note that not all of these will really make sense.
3535
# For instance, `find_artifact_dir()` won't actually be the artifact directory, because

stdlib/MPFR_jll/src/MPFR_jll.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
## dummy stub for https://github.com/JuliaBinaryWrappers/MPFR_jll.jl
44
baremodule MPFR_jll
55
using Base, Libdl, GMP_jll
6-
Base.Experimental.@compiler_options compile=min optimize=0 infer=false
76

87
const PATH_list = String[]
98
const LIBPATH_list = String[]
@@ -32,6 +31,7 @@ function __init__()
3231
LIBPATH[] = dirname(libmpfr_path)
3332
push!(LIBPATH_list, LIBPATH[])
3433
end
34+
precompile(Tuple{typeof(__init__)})
3535

3636
# JLLWrappers API compatibility shims. Note that not all of these will really make sense.
3737
# For instance, `find_artifact_dir()` won't actually be the artifact directory, because

stdlib/MbedTLS_jll/src/MbedTLS_jll.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
baremodule MbedTLS_jll
66
using Base, Libdl
7-
Base.Experimental.@compiler_options compile=min optimize=0 infer=false
87

98
const PATH_list = String[]
109
const LIBPATH_list = String[]
@@ -47,6 +46,7 @@ function __init__()
4746
LIBPATH[] = dirname(libmbedtls_path)
4847
push!(LIBPATH_list, LIBPATH[])
4948
end
49+
precompile(Tuple{typeof(__init__)})
5050

5151
# JLLWrappers API compatibility shims. Note that not all of these will really make sense.
5252
# For instance, `find_artifact_dir()` won't actually be the artifact directory, because

stdlib/MozillaCACerts_jll/src/MozillaCACerts_jll.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
baremodule MozillaCACerts_jll
66
using Base
7-
Base.Experimental.@compiler_options compile=min optimize=0 infer=false
87

98
const PATH_list = String[]
109
const LIBPATH_list = String[]
@@ -19,6 +18,7 @@ function __init__()
1918
global artifact_dir = dirname(Sys.BINDIR)
2019
global cacert = normpath(Sys.BINDIR, Base.DATAROOTDIR, "julia", "cert.pem")
2120
end
21+
precompile(Tuple{typeof(__init__)})
2222

2323
# JLLWrappers API compatibility shims. Note that not all of these will really make sense.
2424
# For instance, `find_artifact_dir()` won't actually be the artifact directory, because

stdlib/OpenBLAS_jll/src/OpenBLAS_jll.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ using Base, Libdl, Base.BinaryPlatforms
1313
# using CompilerSupportLibraries_jll
1414
# Because of this however, we have to manually load the libraries we
1515
# _do_ care about, namely libgfortran
16-
Base.Experimental.@compiler_options compile=min optimize=0 infer=false
1716

1817
const PATH_list = String[]
1918
const LIBPATH_list = String[]
@@ -73,6 +72,7 @@ function __init__()
7372
LIBPATH[] = dirname(libopenblas_path)
7473
push!(LIBPATH_list, LIBPATH[])
7574
end
75+
precompile(Tuple{typeof(__init__)})
7676

7777
# JLLWrappers API compatibility shims. Note that not all of these will really make sense.
7878
# For instance, `find_artifact_dir()` won't actually be the artifact directory, because

stdlib/OpenLibm_jll/src/OpenLibm_jll.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
## dummy stub for https://github.com/JuliaBinaryWrappers/OpenLibm_jll.jl
44
baremodule OpenLibm_jll
55
using Base, Libdl
6-
Base.Experimental.@compiler_options compile=min optimize=0 infer=false
76

87
const PATH_list = String[]
98
const LIBPATH_list = String[]
@@ -32,6 +31,7 @@ function __init__()
3231
LIBPATH[] = dirname(libopenlibm_path)
3332
push!(LIBPATH_list, LIBPATH[])
3433
end
34+
precompile(Tuple{typeof(__init__)})
3535

3636
# JLLWrappers API compatibility shims. Note that not all of these will really make sense.
3737
# For instance, `find_artifact_dir()` won't actually be the artifact directory, because

stdlib/PCRE2_jll/src/PCRE2_jll.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
## dummy stub for https://github.com/JuliaBinaryWrappers/PCRE2_jll.jl
44
baremodule PCRE2_jll
55
using Base, Libdl
6-
Base.Experimental.@compiler_options compile=min optimize=0 infer=false
76

87
const PATH_list = String[]
98
const LIBPATH_list = String[]
@@ -32,6 +31,7 @@ function __init__()
3231
LIBPATH[] = dirname(libpcre2_8_path)
3332
push!(LIBPATH_list, LIBPATH[])
3433
end
34+
precompile(Tuple{typeof(__init__)})
3535

3636
# JLLWrappers API compatibility shims. Note that not all of these will really make sense.
3737
# For instance, `find_artifact_dir()` won't actually be the artifact directory, because

stdlib/SuiteSparse_jll/src/SuiteSparse_jll.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
## dummy stub for https://github.com/JuliaBinaryWrappers/SuiteSparse_jll.jl
44
baremodule SuiteSparse_jll
55
using Base, Libdl, libblastrampoline_jll
6-
Base.Experimental.@compiler_options compile=min optimize=0 infer=false
76

87
const PATH_list = String[]
98
const LIBPATH_list = String[]
@@ -110,6 +109,7 @@ function __init__()
110109
end
111110
global artifact_dir = dirname(Sys.BINDIR)
112111
end
112+
precompile(Tuple{typeof(__init__)})
113113

114114
# JLLWrappers API compatibility shims. Note that not all of these will really make sense.
115115
# For instance, `find_artifact_dir()` won't actually be the artifact directory, because

stdlib/Zlib_jll/src/Zlib_jll.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
## dummy stub for https://github.com/JuliaBinaryWrappers/Zlib_jll.jl
44
baremodule Zlib_jll
55
using Base, Libdl
6-
Base.Experimental.@compiler_options compile=min optimize=0 infer=false
76

87
const PATH_list = String[]
98
const LIBPATH_list = String[]
@@ -32,6 +31,7 @@ function __init__()
3231
LIBPATH[] = dirname(libz_path)
3332
push!(LIBPATH_list, LIBPATH[])
3433
end
34+
precompile(Tuple{typeof(__init__)})
3535

3636
# JLLWrappers API compatibility shims. Note that not all of these will really make sense.
3737
# For instance, `find_artifact_dir()` won't actually be the artifact directory, because

stdlib/dSFMT_jll/src/dSFMT_jll.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
baremodule dSFMT_jll
66
using Base, Libdl
7-
Base.Experimental.@compiler_options compile=min optimize=0 infer=false
87

98
const PATH_list = String[]
109
const LIBPATH_list = String[]
@@ -33,6 +32,7 @@ function __init__()
3332
LIBPATH[] = dirname(libdSFMT_path)
3433
push!(LIBPATH_list, LIBPATH[])
3534
end
35+
precompile(Tuple{typeof(__init__)})
3636

3737
# JLLWrappers API compatibility shims. Note that not all of these will really make sense.
3838
# For instance, `find_artifact_dir()` won't actually be the artifact directory, because

stdlib/libLLVM_jll/src/libLLVM_jll.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
baremodule libLLVM_jll
66
using Base, Libdl
7-
Base.Experimental.@compiler_options compile=min optimize=0 infer=false
87

98
const PATH_list = String[]
109
const LIBPATH_list = String[]
@@ -33,6 +32,7 @@ function __init__()
3332
LIBPATH[] = dirname(libLLVM_path)
3433
push!(LIBPATH_list, LIBPATH[])
3534
end
35+
precompile(Tuple{typeof(__init__)})
3636

3737
# JLLWrappers API compatibility shims. Note that not all of these will really make sense.
3838
# For instance, `find_artifact_dir()` won't actually be the artifact directory, because

stdlib/libblastrampoline_jll/src/libblastrampoline_jll.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
baremodule libblastrampoline_jll
66
using Base, Libdl
7-
Base.Experimental.@compiler_options compile=min optimize=0 infer=false
87

98
const PATH_list = String[]
109
const LIBPATH_list = String[]
@@ -34,6 +33,7 @@ function __init__()
3433
LIBPATH[] = dirname(libblastrampoline_path)
3534
push!(LIBPATH_list, LIBPATH[])
3635
end
36+
precompile(Tuple{typeof(__init__)})
3737

3838
# JLLWrappers API compatibility shims. Note that not all of these will really make sense.
3939
# For instance, `find_artifact_dir()` won't actually be the artifact directory, because

stdlib/nghttp2_jll/src/nghttp2_jll.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
## dummy stub for https://github.com/JuliaBinaryWrappers/nghttp2_jll.jl
44
baremodule nghttp2_jll
55
using Base, Libdl
6-
Base.Experimental.@compiler_options compile=min optimize=0 infer=false
76

87
const PATH_list = String[]
98
const LIBPATH_list = String[]
@@ -32,6 +31,7 @@ function __init__()
3231
LIBPATH[] = dirname(libnghttp2_path)
3332
push!(LIBPATH_list, LIBPATH[])
3433
end
34+
precompile(Tuple{typeof(__init__)})
3535

3636
# JLLWrappers API compatibility shims. Note that not all of these will really make sense.
3737
# For instance, `find_artifact_dir()` won't actually be the artifact directory, because

stdlib/p7zip_jll/src/p7zip_jll.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
## dummy stub for https://github.com/JuliaBinaryWrappers/p7zip_jll.jl
44
baremodule p7zip_jll
55
using Base
6-
Base.Experimental.@compiler_options compile=min optimize=0 infer=false
76

87
const PATH_list = String[]
98
const LIBPATH_list = String[]
@@ -88,6 +87,7 @@ function __init__()
8887
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
8988
LIBPATH[] = join(LIBPATH_list, pathsep)
9089
end
90+
precompile(Tuple{typeof(__init__)})
9191

9292
# JLLWrappers API compatibility shims. Note that not all of these will really make sense.
9393
# For instance, `find_artifact_dir()` won't actually be the artifact directory, because

0 commit comments

Comments
 (0)