Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions src/wrapper_generators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,24 @@ macro generate_wrapper_header(src_name)
@static if isdir(joinpath(dirname($(pkg_dir)), "override"))
return joinpath(dirname($(pkg_dir)), "override")
elseif @isdefined(augment_platform!) && VERSION >= v"1.6"
$(Expr(:macrocall, Symbol("@artifact_str"), __source__, src_name, :(host_platform)))
@static if VERSION >= v"1.9.0-DEV.1497"
$(Expr(:macrocall, Symbol("@artifact_str"), __source__, src_name, :(host_platform), joinpath(pkg_dir, "..", "Artifacts.toml")))
else
$(Expr(:macrocall, Symbol("@artifact_str"), __source__, src_name, :(host_platform)))
end
else
# We explicitly use `macrocall` here so that we can manually pass the `__source__`
# argument, to avoid `@artifact_str` trying to lookup `Artifacts.toml` here.
return $(Expr(:macrocall, Symbol("@artifact_str"), __source__, src_name))
@static if VERSION >= v"1.9.0-DEV.1497"
return $(Expr(:macrocall, Symbol("@artifact_str"), __source__, src_name, nothing, joinpath(pkg_dir, "..", "Artifacts.toml")))
else
return $(Expr(:macrocall, Symbol("@artifact_str"), __source__, src_name))
end
end
end
end)
end


macro generate_init_header(dependencies...)
deps_path_add = Expr[]
if !isempty(dependencies)
Expand Down