-
Notifications
You must be signed in to change notification settings - Fork 1k
Cr110 rust #16789
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
Cr110 rust #16789
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice hack! It's worth taking this to upgrade freedom, if it works at all, until a more permanent fix is available upstream.
This seems to be corrected now. |
97a46d1
to
1c8a302
Compare
65d6afa
to
5bd81ef
Compare
8e903f3
to
f357ce8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iOS++
a62813a
to
426d37a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chromium_src
and patches
changes LGTM
@@ -13,6 +13,7 @@ import("//build/config/sysroot.gni") | |||
declare_args() { | |||
rustup_home = "//brave/build/rustup/$brave_rust_version" | |||
cargo_profile = "" | |||
enable_rust_lto = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't say what's wrong with lto. Should we be doing this for all platforms?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mac/ios was the only platform we enabled this for and it was specifically to deal with the "too many personalities" issue, but actually I wonder if we should be using rust LTO on other platforms to reduce binary size. Since they export so much stuff, it might not be getting stripped in the final output. macos/ios are ok because we use https://github.com/brave/brave-core/pull/16789/files#diff-84fabac7eb11280108df0ac0414a13e868865f07329ae57baff447d9b477c0deR20 to strip everything
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's a separate issue from this PR though because it doesn't change anything for other platforms
… existing workaround in rust-lang/rust@5ff0876
All platforms were green prior to squash and also verified on ios/android/macos configurations that don't run on PR builder |
Resolves brave/brave-browser#28446
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run lint
,npm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: