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

fix(macOS): Enable the linker/trimmer for net6.0-macos #13

Merged
merged 1 commit into from
Jun 7, 2022

Conversation

spouliot
Copy link
Contributor

@spouliot spouliot commented Jun 6, 2022

GitHub Issue (If applicable): #

None specific but it was mentioned in unoplatform/uno#8890 (comment)

PR Type

  • Bugfix

What is the current behavior?

The Dope's Xamarin.Mac legacy project already has this setting enabled.

However the net6.0-macos project does not set it.

In order to compare apples-to-apples it's best to share the same
settings between Xamarin.Mac legacy and net6.0-macos.

What is the new behavior?

Both projects have the linker/trimmer enabled in release mode.

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Docs have been added/updated which fit documentation template. (for bug fixes / features)
  • Unit Tests and/or UI Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Wasm UI Tests are not showing unexpected any differences. Validate PR Screenshots Compare Test Run results.
  • Contains NO breaking changes
  • Updated the Release Notes
  • Associated with an issue (GitHub or internal)

Other information

Enabling the linker/trimmer does more than just removing unused code.
It also optimize the bindings, removing code paths that are not used
inside the app, e.g. removing 32bits code paths on 64bits builds.

It's a good, performance enhancing, setting for release builds so it
make sense to have it set inside samples - leading by example :)

The Dope's Xamarin.Mac legacy project already has this setting.
In order to compare apples-to-apples it's best to share the same
settings between Xamarin.Mac legacy and net6.0-macos.

Enabling the linker/trimmer does more than just removing unused code.
It also optimize the bindings, removing code paths that are not used
inside the app, e.g. removing 32bits code paths on 64bits builds.

It's a good, performance enhancing, setting for release builds so it
make sense to have it set inside samples - leading by example :)

ref: unoplatform/uno#8890 (comment)
Copy link
Member

@jeromelaban jeromelaban left a comment

Choose a reason for hiding this comment

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

Ah, the joy of fork builds ;)

@jeromelaban jeromelaban merged commit 46a79f2 into unoplatform:master Jun 7, 2022
@welcome
Copy link

welcome bot commented Jun 7, 2022

Congrats on your first pull-request! We ❤ the people who are involved in this project, and we’d love to pay it forward by sending you some swag. If you have any feedback (or ideas how to improve Uno as a open-source project) please open a feedback issue.
giphy
Merci beaucoup 👋

jeromelaban added a commit to unoplatform/uno that referenced this pull request Jun 7, 2022
@spouliot spouliot deleted the net6.0-macos-link branch June 7, 2022 13:38
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.

2 participants