Skip to content

Commit ef5ba7a

Browse files
allow compiling stdlib jlls & precompile __init__'s
1 parent c2bca47 commit ef5ba7a

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

0 commit comments

Comments
 (0)