11# Autogenerated wrapper script for LLVM_full_jll for aarch64-linux-gnu-cxx03
2- export llvm_config , libclang, libllvm , opt, llvm_mca , liblto, clang, llc
2+ export llvm_mca , libclang, llvm_config , opt, libllvm , liblto, clang, llc
33
44# # Global variables
55PATH = " "
66LIBPATH = " "
77LIBPATH_env = " LD_LIBRARY_PATH"
88
9- # Relative path to `llvm_config `
10- const llvm_config_splitpath = [" tools" , " llvm-config " ]
9+ # Relative path to `llvm_mca `
10+ const llvm_mca_splitpath = [" tools" , " llvm-mca " ]
1111
1212# This will be filled out by __init__() for all products, as it must be done at runtime
13- llvm_config_path = " "
13+ llvm_mca_path = " "
1414
15- # llvm_config -specific global declaration
16- function llvm_config (f:: Function ; adjust_PATH:: Bool = true , adjust_LIBPATH:: Bool = true )
15+ # llvm_mca -specific global declaration
16+ function llvm_mca (f:: Function ; adjust_PATH:: Bool = true , adjust_LIBPATH:: Bool = true )
1717 global PATH, LIBPATH
1818 env_mapping = Dict {String,String} ()
1919 if adjust_PATH
@@ -31,7 +31,7 @@ function llvm_config(f::Function; adjust_PATH::Bool = true, adjust_LIBPATH::Bool
3131 end
3232 end
3333 withenv (env_mapping... ) do
34- f (llvm_config_path )
34+ f (llvm_mca_path )
3535 end
3636end
3737
@@ -47,31 +47,17 @@ libclang_path = ""
4747libclang_handle = C_NULL
4848
4949# This must be `const` so that we can use it with `ccall()`
50- const libclang = " libclang.so.9jl"
51-
52-
53- # Relative path to `libllvm`
54- const libllvm_splitpath = [" lib" , " libLLVM.so" ]
50+ const libclang = " libclang.so.8jl"
5551
56- # This will be filled out by __init__() for all products, as it must be done at runtime
57- libllvm_path = " "
5852
59- # libllvm-specific global declaration
60- # This will be filled out by __init__()
61- libllvm_handle = C_NULL
62-
63- # This must be `const` so that we can use it with `ccall()`
64- const libllvm = " libLLVM-9jl.so"
65-
66-
67- # Relative path to `opt`
68- const opt_splitpath = [" tools" , " opt" ]
53+ # Relative path to `llvm_config`
54+ const llvm_config_splitpath = [" tools" , " llvm-config" ]
6955
7056# This will be filled out by __init__() for all products, as it must be done at runtime
71- opt_path = " "
57+ llvm_config_path = " "
7258
73- # opt -specific global declaration
74- function opt (f:: Function ; adjust_PATH:: Bool = true , adjust_LIBPATH:: Bool = true )
59+ # llvm_config -specific global declaration
60+ function llvm_config (f:: Function ; adjust_PATH:: Bool = true , adjust_LIBPATH:: Bool = true )
7561 global PATH, LIBPATH
7662 env_mapping = Dict {String,String} ()
7763 if adjust_PATH
@@ -89,19 +75,19 @@ function opt(f::Function; adjust_PATH::Bool = true, adjust_LIBPATH::Bool = true)
8975 end
9076 end
9177 withenv (env_mapping... ) do
92- f (opt_path )
78+ f (llvm_config_path )
9379 end
9480end
9581
9682
97- # Relative path to `llvm_mca `
98- const llvm_mca_splitpath = [" tools" , " llvm-mca " ]
83+ # Relative path to `opt `
84+ const opt_splitpath = [" tools" , " opt " ]
9985
10086# This will be filled out by __init__() for all products, as it must be done at runtime
101- llvm_mca_path = " "
87+ opt_path = " "
10288
103- # llvm_mca -specific global declaration
104- function llvm_mca (f:: Function ; adjust_PATH:: Bool = true , adjust_LIBPATH:: Bool = true )
89+ # opt -specific global declaration
90+ function opt (f:: Function ; adjust_PATH:: Bool = true , adjust_LIBPATH:: Bool = true )
10591 global PATH, LIBPATH
10692 env_mapping = Dict {String,String} ()
10793 if adjust_PATH
@@ -119,11 +105,25 @@ function llvm_mca(f::Function; adjust_PATH::Bool = true, adjust_LIBPATH::Bool =
119105 end
120106 end
121107 withenv (env_mapping... ) do
122- f (llvm_mca_path )
108+ f (opt_path )
123109 end
124110end
125111
126112
113+ # Relative path to `libllvm`
114+ const libllvm_splitpath = [" lib" , " libLLVM.so" ]
115+
116+ # This will be filled out by __init__() for all products, as it must be done at runtime
117+ libllvm_path = " "
118+
119+ # libllvm-specific global declaration
120+ # This will be filled out by __init__()
121+ libllvm_handle = C_NULL
122+
123+ # This must be `const` so that we can use it with `ccall()`
124+ const libllvm = " libLLVM-8jl.so"
125+
126+
127127# Relative path to `liblto`
128128const liblto_splitpath = [" lib" , " libLTO.so" ]
129129
@@ -135,7 +135,7 @@ liblto_path = ""
135135liblto_handle = C_NULL
136136
137137# This must be `const` so that we can use it with `ccall()`
138- const liblto = " libLTO.so.9jl "
138+ const liblto = " libLTO.so.8jl "
139139
140140
141141# Relative path to `clang`
@@ -208,29 +208,29 @@ function __init__()
208208 global PATH_list, LIBPATH_list
209209 # We first need to add to LIBPATH_list the libraries provided by Julia
210210 append! (LIBPATH_list, [joinpath (Sys. BINDIR, Base. LIBDIR, " julia" ), joinpath (Sys. BINDIR, Base. LIBDIR)])
211- global llvm_config_path = normpath (joinpath (artifact_dir, llvm_config_splitpath ... ))
211+ global llvm_mca_path = normpath (joinpath (artifact_dir, llvm_mca_splitpath ... ))
212212
213- push! (PATH_list, dirname (llvm_config_path ))
213+ push! (PATH_list, dirname (llvm_mca_path ))
214214 global libclang_path = normpath (joinpath (artifact_dir, libclang_splitpath... ))
215215
216216 # Manually `dlopen()` this right now so that future invocations
217217 # of `ccall` with its `SONAME` will find this path immediately.
218218 global libclang_handle = dlopen (libclang_path)
219219 push! (LIBPATH_list, dirname (libclang_path))
220220
221+ global llvm_config_path = normpath (joinpath (artifact_dir, llvm_config_splitpath... ))
222+
223+ push! (PATH_list, dirname (llvm_config_path))
224+ global opt_path = normpath (joinpath (artifact_dir, opt_splitpath... ))
225+
226+ push! (PATH_list, dirname (opt_path))
221227 global libllvm_path = normpath (joinpath (artifact_dir, libllvm_splitpath... ))
222228
223229 # Manually `dlopen()` this right now so that future invocations
224230 # of `ccall` with its `SONAME` will find this path immediately.
225231 global libllvm_handle = dlopen (libllvm_path)
226232 push! (LIBPATH_list, dirname (libllvm_path))
227233
228- global opt_path = normpath (joinpath (artifact_dir, opt_splitpath... ))
229-
230- push! (PATH_list, dirname (opt_path))
231- global llvm_mca_path = normpath (joinpath (artifact_dir, llvm_mca_splitpath... ))
232-
233- push! (PATH_list, dirname (llvm_mca_path))
234234 global liblto_path = normpath (joinpath (artifact_dir, liblto_splitpath... ))
235235
236236 # Manually `dlopen()` this right now so that future invocations
0 commit comments