{"id":50361,"date":"2025-12-09T16:59:01","date_gmt":"2025-12-09T21:59:01","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=50361"},"modified":"2025-12-09T16:59:01","modified_gmt":"2025-12-09T21:59:01","slug":"what-swift-compiler-setting-should-i-use","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2025\/12\/09\/what-swift-compiler-setting-should-i-use\/","title":{"rendered":"What Swift Compiler Setting Should I Use?"},"content":{"rendered":"<p><a href=\"https:\/\/www.massicotte.org\/blog\/what-settings\/\">Matt Massicotte<\/a> (<a href=\"https:\/\/mastodon.social\/@mattiem\/115668742679922742\">Mastodon<\/a>):<\/p>\n<blockquote cite=\"https:\/\/www.massicotte.org\/blog\/what-settings\/\"><p>We&rsquo;re in a protracted period where not only are settings very important, they are also deeply and persistently misunderstood.<\/p><p>The settings you use can have a <strong>profound<\/strong> effect on your code.<\/p><p>But there are a lot of them! And I think it&rsquo;s pretty reasonable that you might not want to dig into every single one. So, here an attempt at some guidance.<\/p><\/blockquote>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2025\/11\/20\/no-mainactor-by-default\/\">(No) MainActor by Default<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2025\/11\/03\/swift-6-2-approachable-concurrency\/\">Swift 6.2: Approachable Concurrency<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2025\/01\/22\/swift-proposal-opt-in-strict-memory-safety-checking\/\">Swift Proposal: Opt-in Strict Memory Safety Checking<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2024\/12\/05\/swift-proposal-precise-control-flags-over-compiler-warnings\/\">Swift Proposal: Precise Control Flags Over Compiler Warnings<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2024\/09\/20\/unwanted-swift-concurrency-checking\/\">Unwanted Swift Concurrency Checking<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2023\/06\/07\/swifts-upcoming-feature-flags\/\">Swift&rsquo;s Upcoming Feature Flags<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2018\/07\/26\/conditional-compilation-in-swift\/\">Conditional Compilation in Swift<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2016\/04\/29\/speeding-up-slow-swift-build-times\/\">Speeding Up Slow Swift Build Times<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Matt Massicotte (Mastodon): We&rsquo;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&rsquo;s pretty reasonable that you might not want to dig into every single [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2025-12-09T21:59:04Z","apple_news_api_id":"b4d64ee9-824b-4e50-9713-361e65dd4975","apple_news_api_modified_at":"2025-12-09T21:59:04Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/AtNZO6YJLTlCXEzYeZd1JdQ","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[255,71,2200,901],"class_list":["post-50361","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-compiler","tag-programming","tag-swift-concurrency","tag-swift-programming-language"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/50361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=50361"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/50361\/revisions"}],"predecessor-version":[{"id":50362,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/50361\/revisions\/50362"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=50361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=50361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=50361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}