Skip to content

Commit e4a2f43

Browse files
committed
remove dynamic download
1 parent 4adbc62 commit e4a2f43

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

src/wrapper_generators.jl

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,6 @@ macro generate_wrapper_header(src_name)
1717
return $(Expr(:macrocall, Symbol("@artifact_str"), __source__, src_name))
1818
end
1919
end
20-
function find_or_instantiate_artifact_dir()
21-
@static if VERSION < v"1.6"
22-
return find_artifact_dir()
23-
else
24-
try
25-
return find_artifact_dir()
26-
catch
27-
# 1.6 does not call `.pkg/select_artifacts.jl`
28-
# 1.7+ User might switch the tag, without calling `Pkg.instantiate()`
29-
install_current_artifact(host_platform)
30-
return find_artifact_dir()
31-
end
32-
end
33-
end
3420
end)
3521
end
3622

@@ -48,7 +34,7 @@ macro generate_init_header(dependencies...)
4834

4935
return excat(
5036
# This either calls `@artifact_str()`, or returns a constant string if we're overridden.
51-
:(global artifact_dir = find_or_instantiate_artifact_dir()),
37+
:(global artifact_dir = find_artifact_dir()),
5238

5339
# Initialize PATH_list and LIBPATH_list
5440
deps_path_add...,

0 commit comments

Comments
 (0)