Skip to content

Commit 3b92b09

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

File tree

22 files changed

+15
-22
lines changed

22 files changed

+15
-22
lines changed

stdlib/CompilerSupportLibraries_jll/src/CompilerSupportLibraries_jll.jl

+1-1
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

+1-1
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

-1
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[]

stdlib/LLVMLibUnwind_jll/src/LLVMLibUnwind_jll.jl

-1
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[]

stdlib/LibCURL_jll/src/LibCURL_jll.jl

+1-1
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

+1-1
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

+1-1
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

-1
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

-1
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[]

stdlib/MPFR_jll/src/MPFR_jll.jl

+1-1
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

+1-1
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

-1
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[]

stdlib/OpenBLAS_jll/src/OpenBLAS_jll.jl

+1-1
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

+1-1
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

+1-1
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

-1
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[]

stdlib/Zlib_jll/src/Zlib_jll.jl

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

-1
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[]

0 commit comments

Comments
 (0)