Skip to content

Conversation

@mxcl
Copy link
Contributor

@mxcl mxcl commented Mar 21, 2016

@mxcl
Copy link
Contributor Author

mxcl commented Mar 21, 2016

@swift-ci Please test

mxcl added a commit that referenced this pull request Mar 22, 2016
Remove release-mode dead-strip
@mxcl mxcl merged commit 9f62a2b into swiftlang:master Mar 22, 2016
@mxcl mxcl deleted the rm-dead-strip branch March 22, 2016 17:29
keith added a commit to keith/swift-package-manager that referenced this pull request Feb 14, 2022
In the past it was unsafe to pass -dead_strip because there was some
swift metadata that could be stripped. It seems that at this point all
of those cases are either fixed or marked as @llvm.used, so passing
these flags should safely reduce binary size in some cases. If there are
other cases where this isn't safe we should likely annotate them as
@llvm.used anyways.

Related: https://bugs.swift.org/browse/SR-521

swiftlang#215
keith added a commit to keith/swift-package-manager that referenced this pull request Feb 15, 2022
In the past it was unsafe to pass -dead_strip because there was some
swift metadata that could be stripped. It seems that at this point all
of those cases are either fixed or marked as @llvm.used, so passing
these flags should safely reduce binary size in some cases. If there are
other cases where this isn't safe we should likely annotate them as
@llvm.used anyways.

Related: https://bugs.swift.org/browse/SR-521

swiftlang#215
tomerd pushed a commit that referenced this pull request Feb 16, 2022
motivation: In the past it was unsafe to pass -dead_strip because there was some
swift metadata that could be stripped. It seems that at this point all
of those cases are either fixed or marked as @llvm.used, so passing
these flags should safely reduce binary size in some cases. If there are
other cases where this isn't safe we should likely annotate them as
@llvm.used anyways.

Related: https://bugs.swift.org/browse/SR-521
#215

changes: 
* Add -dead_strip / --gc-sections for release builds
* Add --disable-dead-strip flag
* Add CHANGELOG entry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant