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

Split off functionality that relies on libm #18

Closed
wants to merge 1 commit into from

Conversation

andreittr
Copy link
Contributor

Previously some parts of compiler-rt depended on functions provided by a math library, commonly supplied together with a real libc. This change sections off the parts dependent on libm, allowing a minimal compiler-rt to be built with nolibc alone.

@razvand razvand requested a review from StefanJum August 7, 2023 15:25
@razvand razvand self-assigned this Aug 7, 2023
@razvand razvand added the enhancement New feature or request label Aug 7, 2023
@razvand razvand requested review from eduardvintila and removed request for mariasfiraiala August 7, 2023 15:26
Copy link
Member

@StefanJum StefanJum left a comment

Choose a reason for hiding this comment

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

This looks fine @andreittr, thank you.

allowing a minimal compiler-rt to be built with nolibc alone What is the minimal setup for building compiler-rt with this pr? I suppose libunwind it's still needed, right?

Previously some parts of compiler-rt depended on functions provided by a
math library, commonly supplied together with a real libc.
This change sections off the parts dependent on libm, allowing a minimal
compiler-rt to be built with nolibc alone.

Signed-off-by: Andrei Tatar <andrei@unikraft.io>
@andreittr
Copy link
Contributor Author

andreittr commented Aug 7, 2023

What is the minimal setup for building compiler-rt with this pr? I suppose libunwind it's still needed, right?

Nope, following the merging of #14 libunwind is no longer needed, except if you really want that gcc_personality_v0. A plainly configured compiler-rt should build with no external dependencies.

also: rebased on top of staging, fixed conflicts & re-pushed.

Copy link
Member

@StefanJum StefanJum left a comment

Choose a reason for hiding this comment

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

Thank you @andreittr, all good.
Reviewed-by: Stefan Jumarea stefanjumarea02@gmail.com

Copy link
Contributor

@razvand razvand left a comment

Choose a reason for hiding this comment

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

Approved-by: Razvan Deaconescu razvand@unikraft.io

@andreittr andreittr deleted the ttr/split-math branch August 11, 2023 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/merged enhancement New feature or request
Projects
Status: Done!
Development

Successfully merging this pull request may close these issues.

None yet

4 participants