Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add -Osize support #348

Merged
merged 1 commit into from
Nov 21, 2019
Merged

Conversation

keith
Copy link
Member

@keith keith commented Oct 30, 2019

This adds a feature to use -Osize instead of -O which apparently
should rarely have a major impact on "normal" apps' performance
https://forums.swift.org/t/performance-impact-of-swift-compiler-optimization-level/30170/2

This adds a feature to use `-Osize` instead of `-O` which apparently
should rarely have a major impact on "normal" apps' performance
https://forums.swift.org/t/performance-impact-of-swift-compiler-optimization-level/30170/2
swiple-rules-gardener pushed a commit that referenced this pull request Nov 20, 2019
Swift toolchains now have a `swift_executable` attribute that lets the configurator replace the Swift driver used by the rules with a custom executable in their workspace. This can be useful for testing the build rules alongside compiler development, and since that file is part of the workspace and a proper input of actions, it also works correctly across remote build environments.

Also remove the no-longer-used `SwiftToolchainInfo.clang_executable` field, now that linking has migrated to the `cc_common.link` API.

RELNOTES: None.
FUTURE_COPYBARA_INTEGRATE_REVIEW=#348 from keith:ks/osize 9f4202b
PiperOrigin-RevId: 281380294
swiple-rules-gardener pushed a commit that referenced this pull request Nov 20, 2019
Swift toolchains now have a `swift_executable` attribute that lets the configurator replace the Swift driver used by the rules with a custom executable in their workspace. This can be useful for testing the build rules alongside compiler development, and since that file is part of the workspace and a proper input of actions, it also works correctly across remote build environments.

Also remove the no-longer-used `SwiftToolchainInfo.clang_executable` field, now that linking has migrated to the `cc_common.link` API.

RELNOTES: None.
FUTURE_COPYBARA_INTEGRATE_REVIEW=#348 from keith:ks/osize 9f4202b
PiperOrigin-RevId: 281380294
swiple-rules-gardener added a commit that referenced this pull request Nov 21, 2019
PiperOrigin-RevId: 281091576
@swiple-rules-gardener swiple-rules-gardener merged commit 9f4202b into bazelbuild:master Nov 21, 2019
@keith keith deleted the ks/osize branch November 21, 2019 00:31
@keith
Copy link
Member Author

keith commented Nov 21, 2019

Thanks!

@allevato
Copy link
Member

I don't know why it took this long—I merged this internally 3 days ago...

tymurmustafaiev pushed a commit to tymurmustafaiev/rules_swift that referenced this pull request Jul 19, 2023
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.

4 participants