Skip to content

Commit c9f0505

Browse files
committed
Add include dependencies on paths that aren't included directly.
1 parent e76eb7a commit c9f0505

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/LLVM.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,16 @@ end
2929
const libllvm = first(libllvm_paths)
3030
const libllvm_version = Base.libllvm_version::VersionNumber
3131
@debug "Discovered LLVM v$libllvm_version at $libllvm"
32+
Base.include_dependency(libllvm)
3233

3334
vercmp_match(a,b) = a.major==b.major && a.minor==b.minor
3435
vercmp_compat(a,b) = a.major>b.major || (a.major==b.major && a.minor>=b.minor)
3536

36-
const llvmjl_wrappers = filter(path->isdir(joinpath(@__DIR__, "..", "lib", path)),
37-
readdir(joinpath(@__DIR__, "..", "lib")))
37+
const llvmjl_wrappers_path = joinpath(@__DIR__, "..", "lib")
38+
Base.include_dependency(llvmjl_wrappers_path)
39+
40+
const llvmjl_wrappers = filter(path->isdir(joinpath(llvmjl_wrappers_path, path)),
41+
readdir(llvmjl_wrappers_path))
3842
@assert !isempty(llvmjl_wrappers)
3943

4044
# figure out which wrapper to use

0 commit comments

Comments
 (0)