Skip to content

Commit 8aa3542

Browse files
committed
Set DEAD_CODE_STRIPPING for Swift test applications and bundles
1 parent 58cdd39 commit 8aa3542

File tree

4 files changed

+11176
-11011
lines changed

4 files changed

+11176
-11011
lines changed

swift/Rakefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,11 @@ def target_set_common_build_settings(target, product, platform, plist: nil, swif
775775
end
776776
end
777777

778+
if target.product_type == "com.apple.product-type.application" or
779+
target.product_type == "com.apple.product-type.bundle" then
780+
config.build_settings["DEAD_CODE_STRIPPING"] = "YES"
781+
end
782+
778783
if platform == :osx
779784
config.build_settings["MACOSX_DEPLOYMENT_TARGET"] = $macOSDeploymentTarget
780785
else

0 commit comments

Comments
 (0)