Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass explicit path to Artifact file into the artifact string macro #45

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
update version check now that upstream PR is merged
  • Loading branch information
KristofferC committed Oct 10, 2022
commit 542e69089d7f10856653c93441951f12b58588b5
4 changes: 2 additions & 2 deletions src/wrapper_generators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ 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"
@static if VERSION >= v"1.9.0-DEV.XXXX"
@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.
@static if VERSION >= v"1.9.0-DEV.XXXX"
@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))
Expand Down