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

PKGBUILD: Make LTO a hard dependency when building with clang #354

Closed
wants to merge 1 commit into from

Conversation

1Naim
Copy link
Member

@1Naim 1Naim commented Dec 6, 2024

In hindsight, there's not much to be gained by compiling clang without LTO. Faster compile times can be achieved but the additional time it takes using LTO hardly matters on modern computers.

Forcing this on also makes it simple for the build script we use because the clang-specific features aren't available on GCC (obviously).

Also refactored the pkgsuffix conditions to use _is_lto_kernel instead.

In hindsight, there's not much to be gained by compiling clang without LTO. Faster compile times can be achieved
but the additional time it takes using LTO hardly matters on modern computers.

Forcing this on also makes it simple for the build script we use because the clang-specific features aren't
available on GCC (obviously).

Also refactored the pkgsuffix conditions to use _is_lto_kernel instead to make it cleaner.

Suggested-by: Vasiliy Stelmachenok <[email protected]>
Signed-off-by: Eric Naim <[email protected]>
@1Naim 1Naim requested review from ptr1337 and ventureoo December 6, 2024 12:06
@1Naim 1Naim closed this Dec 6, 2024
@1Naim 1Naim deleted the feat/clang-hardcode-lto branch December 6, 2024 14:26
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.

1 participant