This follows a similar change to Cranelift made here: https://github.com/CraneStation/cranelift/pull/660