executorch
executorch copied to clipboard
Llama_main strips symbols in RelWithDebInfo mode
🐛 Describe the bug
When building examples/models/llama/llama_main, it strips when build mode is not Debug. It should also not strip in RelWithDebInfo.
Versions
Reproed on release/1.0.
cc @larryliu0820
A PR has been opened to fix this: https://github.com/pytorch/executorch/pull/16581
RelWithDebInfo builds will no longer strip binaries, ensuring debug symbols are retained.
Please let me know if this aligns with the intended behavior or if there are edge cases I may have missed.