Skip to content
No description, website, or topics provided.
Swift
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Sources
.gitignore
HopperOutput.txt
Package.swift
README.md

README.md

testwlbug

Really simple package to test if swift is figuring out which import libraries/modules can be set as weak-linked correctly or not.

In this test CryptoKit is imported but the code that uses it is wrapped in if #available so it should be weak linked.

See main.swift for details, but if run on macOS 10.14.6 it should run just fine; instead it fails with an error trying to load CryptoKit (which doesn't exist there).

Some disassembly may point to some kind of lazy protocol witness table cache accessors or something:

HopperOutput.txt

You can’t perform that action at this time.