-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[bolt] Add cmake c,cxx,asm,linker flags #68358
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
Conversation
pirama-arumuga-nainar
left a comment
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.
Thanks for the fix @appujee!
rafaelauler
left a comment
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.
Test is failing
|
nvm i see it passing on the baseline patch. something is up with this patch then. |
|
After this patch readelf output is different. $ cat base.readelf $ cat mod.readelf |
|
@rafaelauler please review the patch as i've fixed the testcase. |
|
The issue is that we don't want arbitrary flags being passed to BOLT runtime library build – they are configured to be freestanding. Specifically, runtime library shouldn't depend on host libgcc_s. The proper solution would probably be along the lines of |
Ah i see
Makes sense. Do you have wip patches for this? |
I think we need all of the flags per this answer: https://stackoverflow.com/questions/59612257/difference-between-ffreestanding-and-nostdlib-when-compiling-with-gcc
Unfortunately no, I'm not an expert in runtimes builds. @petrhosek – do you have any tips/starting points? |
Nothing other than including the BOLT runtime in |
Fixes: #68356