Skip to content

Commit 45cc049

Browse files
committed
Embed host_platform directly instead of doing runtime lookups
1 parent a33f3e3 commit 45cc049

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wrapper_generators.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ macro generate_wrapper_header(src_name)
1010
@static if isdir(joinpath(dirname($(pkg_dir)), "override"))
1111
return joinpath(dirname($(pkg_dir)), "override")
1212
elseif @isdefined(augment_platform!) && VERSION >= v"1.6"
13-
$(Expr(:macrocall, Symbol("@artifact_str"), __source__, src_name, :(host_platform)))
13+
$(Expr(:macrocall, Symbol("@artifact_str"), __source__, src_name, __module__.host_platform))
1414
else
1515
# We explicitly use `macrocall` here so that we can manually pass the `__source__`
1616
# argument, to avoid `@artifact_str` trying to lookup `Artifacts.toml` here.

0 commit comments

Comments
 (0)