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

Add cross-project LTO #967

Merged
merged 5 commits into from
Jan 14, 2025
Merged

Add cross-project LTO #967

merged 5 commits into from
Jan 14, 2025

Conversation

foxtran
Copy link
Contributor

@foxtran foxtran commented Jan 11, 2025

This PR adds TRACY_LTO flag that enables Link-Time optimizations for Tracy. It should improve performance of Tracy calls.

@wolfpld
Copy link
Owner

wolfpld commented Jan 11, 2025

I would expect users to set set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON) in their build scripts.

@foxtran
Copy link
Contributor Author

foxtran commented Jan 11, 2025

Yep, setting CMAKE_INTERPROCEDURAL_OPTIMIZATION is more convenient way, however not all projects can be compiled with LTO (compilation time, linking issues, compiler bugs, and so on), so it would be useful to provide an LTO option for users who can not use LTO on whole project.

@wolfpld
Copy link
Owner

wolfpld commented Jan 11, 2025

Yep, setting CMAKE_INTERPROCEDURAL_OPTIMIZATION is more convenient way, however not all projects can be compiled with LTO (compilation time, linking issues, compiler bugs, and so on), so it would be useful to provide an LTO option for users who can not use LTO on whole project.

Please add a note about this in the documentation.

@wolfpld wolfpld merged commit da60684 into wolfpld:master Jan 14, 2025
6 checks passed
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