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

[Merged by Bors] - TY-2366 build ios prod #135

Closed
wants to merge 1 commit into from

Conversation

Robert-Steiner
Copy link
Contributor

@Robert-Steiner Robert-Steiner commented Feb 11, 2022

Ticket:

Update: lto error was addressed in #140


can't use lto because of:
rust-lang/rust#51009

running:
RUSTFLAGS="-Ccodegen-units=1 -Clto=on -Cembed-bitcode=yes" just compile-ios-local

gives the error:

error: lto can only be run for executables, cdylibs and static library outputs

error: could not compile `hyper` due to previous error

but -Ccodegen-units=1 alone still decreases the size from 221mb to 144mb

@github-actions github-actions bot added the work-in-progress The author is still working on this PR label Feb 11, 2022
@Robert-Steiner Robert-Steiner changed the base branch from main to TY-2361-build-ios-in-bors-ci February 11, 2022 18:13
@Robert-Steiner Robert-Steiner force-pushed the TY-2366-build-ios-prod branch 9 times, most recently from 13a6726 to 8261767 Compare February 11, 2022 18:42
@Robert-Steiner Robert-Steiner force-pushed the TY-2366-build-ios-prod branch 13 times, most recently from 37216ab to fa4a78b Compare February 14, 2022 09:27
@Robert-Steiner Robert-Steiner force-pushed the TY-2366-build-ios-prod branch 2 times, most recently from f353425 to 7c09138 Compare February 14, 2022 16:53
@acrrd
Copy link
Contributor

acrrd commented Feb 14, 2022

Please rebase on top of #140 when merged

bors bot pushed a commit that referenced this pull request Feb 15, 2022
In #135 we have an error that `hyper` cannot be used together with lto.
We forked hyper and removed the the configuration that wasn't allowing it.
This pr points to that version.

Running
`RUSTFLAGS="-Ccodegen-units=1 -Clto=on -Cembed-bitcode=yes" just compile-android-local` works correctly.
@Robert-Steiner Robert-Steiner force-pushed the TY-2366-build-ios-prod branch 2 times, most recently from 0e5f2e4 to 135d088 Compare February 15, 2022 10:28
@Robert-Steiner
Copy link
Contributor Author

Please rebase on top of #140 when merged

works 🚀

@Robert-Steiner Robert-Steiner marked this pull request as ready for review February 15, 2022 11:07
@github-actions github-actions bot added ready-for-review The PR can be reviewed and removed work-in-progress The author is still working on this PR labels Feb 15, 2022
@bors bors bot changed the base branch from TY-2361-build-ios-in-bors-ci to main February 15, 2022 11:52
@Robert-Steiner
Copy link
Contributor Author

bors merge

bors bot pushed a commit that referenced this pull request Feb 15, 2022
Ticket:

- [TY-2366]


**Update:** lto error was addressed in #140 

---

can't use `lto` because of:
rust-lang/rust#51009

running:
`RUSTFLAGS="-Ccodegen-units=1 -Clto=on -Cembed-bitcode=yes" just compile-ios-local`

gives the error:
```
error: lto can only be run for executables, cdylibs and static library outputs

error: could not compile `hyper` due to previous error
```

but `-Ccodegen-units=1` alone still decreases the size from 221mb to 144mb

[TY-2366]: https://xainag.atlassian.net/browse/TY-2366?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
@bors
Copy link

bors bot commented Feb 15, 2022

Pull request successfully merged into main.

Build succeeded:

@bors bors bot changed the title TY-2366 build ios prod [Merged by Bors] - TY-2366 build ios prod Feb 15, 2022
@bors bors bot closed this Feb 15, 2022
@bors bors bot deleted the TY-2366-build-ios-prod branch February 15, 2022 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-review The PR can be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants