-
Notifications
You must be signed in to change notification settings - Fork 431
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
CMake(Linux): make "-fno-omit-frame-pointer" configurable in release … #1429
Conversation
Why not |
It's too long and the packager should check the whole cmakelists file to ensure the flags won't be overrode, maybe too difficult to some one (a packager not need to be a programmer). Sometimes I also need this for profiling, so I made my life easier too. To be honest, I can't remember options like "-mno-omit-leaf-xxxx", but I can barely remember ENABLE_FRAME_POINTERS. |
There's
What if you want No. |
That's not my PERSONAL requirement. THAT'S FEDORA/UBUNTU/ARCH's REQUIREMENTS. |
No, they can. |
OK, seems like u never read links that I posted and only want to against me. It's wasting time. |
Have you ever used CFLAGS???
This is your requirements. As for now, no mantainers of fastfetch distro packages made a request of adding this kind of cmake option. ENABLE_FRAME_POINTERS is your idea and named by you. I don't think you discussed it with any real fastfetch package mantainers. |
Again, please make requests that really solve problems. Otherwise, it's wasting time. Yes. |
…mode.
Starting last year, Fedora and Ubuntu began to require softwares in the repository to turn on the "-fno-omit-frame-pointer" and "-mno-omit-leaf-frame-pointer" compiler options by default. This year Arch Linux also began to make similar requirements.
Fedora: https://fedoraproject.org/wiki/Changes/fno-omit-frame-pointer
Ubuntu: https://www.phoronix.com/news/Ubuntu-Frame-Pointers-Default
Arch Linux: https://rfc.archlinux.page/0026-fno-omit-frame-pointer/
So add an option and set its default value to OFF, packagers can set to ON if they need it. This might make those packagers' lives easier.
Currently the frame pointer is only valuable under Linux so it is only enabled when the build target is Linux.
This option is also not enabled in Debug mode, for two reasons:
Test:
Turn on the option:
Default/Turn off: