Skip to content

Commit e879525

Browse files
vchuravygiordano
andauthored
Update src/toplevel_generators.jl
Co-authored-by: Mosè Giordano <[email protected]>
1 parent 13c9ee5 commit e879525

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/toplevel_generators.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ function generate_wrapper_load(src_name, pkg_uuid, __source__)
163163
end
164164

165165
# From the available options, choose the best wrapper script
166+
# The two argument `select_platform` is notably slower, so micro-optimize this by
167+
# only calling it when necessary.
166168
if host_platform !== nothing
167169
select_platform(valid_wrappers, host_platform)
168170
else

0 commit comments

Comments
 (0)