Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

[macOS][iOS] Eliminate strip_bitcode action#36627

Merged
cbracken merged 1 commit intoflutter:mainfrom
cbracken:farewell-strip-bitcode
Oct 5, 2022
Merged

[macOS][iOS] Eliminate strip_bitcode action#36627
cbracken merged 1 commit intoflutter:mainfrom
cbracken:farewell-strip-bitcode

Conversation

@cbracken
Copy link
Member

@cbracken cbracken commented Oct 5, 2022

Eliminates the strip_bitcode GN rule defined in
//flutter/sky/tools/mac.gni and the related script at //flutter/sky/tools/strip_bitcode.py.

As of Xcode 14, bitcode is deprecated, no longer enabled by default, and generates a warning message if a project enables it. Bitcode support will be removed entirely from a future version of Xcode.

The strip_bitcode rule had two purposes:

  1. Copy the binary specified by its input parameter to the path specified by its output parameter.
  2. Strip bitcode segments as it does so.

While we no longer require the second of these functions, we still use the first to create a gen_snapshot binary suffixed with the target architecture. This replaces strip_bitcode with the built-in gn copy rule instead.

Issue: flutter/flutter#107884
Issue: flutter/flutter#112896
Issue: flutter/flutter#101138
Issue: flutter/flutter#103386

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on
    writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Eliminates the `strip_bitcode` GN rule defined in
//flutter/sky/tools/mac.gni and the related script at
//flutter/sky/tools/strip_bitcode.py.

As of Xcode 14, bitcode is deprecated, no longer enabled by default, and
generates a warning message if a project enables it. Bitcode support
will be removed entirely from a future version of Xcode.

The `strip_bitcode` rule had two purposes:
1. Copy the binary specified by its input parameter to the path
   specified by its output parameter.
2. Strip bitcode segments as it does so.

While we no longer require the second of these functions, we still use
the first to create a `gen_snapshot` binary suffixed with the target
architecture. This replaces `strip_bitcode` with the built-in gn `copy`
rule instead.

Issue: flutter/flutter#107884
Issue: flutter/flutter#112896
Issue: flutter/flutter#101138
Issue: flutter/flutter#103386
@cbracken cbracken requested review from a-wallen and jmagman October 5, 2022 22:33
Copy link
Member

@jmagman jmagman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

Copy link
Contributor

@a-wallen a-wallen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cbracken cbracken merged commit 377bd08 into flutter:main Oct 5, 2022
@cbracken cbracken deleted the farewell-strip-bitcode branch October 5, 2022 23:26
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants