diff --git a/base/binaryplatforms.jl b/base/binaryplatforms.jl index babf816684116..76aaf927b60f2 100644 --- a/base/binaryplatforms.jl +++ b/base/binaryplatforms.jl @@ -1096,7 +1096,7 @@ function platforms_match(a::AbstractPlatform, b::AbstractPlatform) # Call the comparator, passing in which objects requested this comparison (one, the other, or both) # For some comparators this doesn't matter, but for non-symmetrical comparisons, it does. - if !(comparator(ak, bk, a_comp === comparator, b_comp === comparator)::Bool) + if !(@invokelatest(comparator(ak, bk, a_comp === comparator, b_comp === comparator))::Bool) return false end end