mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add an -enforce-exclusivity=... flag to control enforcement of the law of exclusivity. The flag takes one of four options: "checked": Perform both static (compile-time) and dynamic (run-time) checks. "unchecked": Perform only static enforcement. This is analogous to -Ounchecked. "dynamic-only": Perform only dynamic checks. This is for staging purposes. "none": Perform no checks at all. This is also for staging purposes. The default, for now, is "none". The intent is that in the fullness of time, "checked" and "unchecked" will be the only legal options with "checked" the default. That is, static enforcement will always be enabled and dynamic enforcement will be enabled by default.
57 KiB
57 KiB