What Swift Compiler Setting Should I Use?
We’re in a protracted period where not only are settings very important, they are also deeply and persistently misunderstood.
The settings you use can have a profound effect on your code.
But there are a lot of them! And I think it’s pretty reasonable that you might not want to dig into every single one. So, here an attempt at some guidance.
Previously:
- (No) MainActor by Default
- Swift 6.2: Approachable Concurrency
- Swift Proposal: Opt-in Strict Memory Safety Checking
- Swift Proposal: Precise Control Flags Over Compiler Warnings
- Unwanted Swift Concurrency Checking
- Swift’s Upcoming Feature Flags
- Conditional Compilation in Swift
- Speeding Up Slow Swift Build Times