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

Ensure LTO for GCC runs in parallel #9

Merged
merged 1 commit into from
Sep 22, 2021

Conversation

joebonrichie
Copy link
Contributor

GCC's documentation states that by default lto uses 1 job, it can be optionally overridden
with n number of jobs to run in parallel. Pass -flto=%YJOBS% when building with GCC LTO to
reduce compilation time.

Clang does not support this and instead uses thin lto for concurrency. Split LTO flags for GCC
and Clang into different variables.

Signed-off-by: Joey Riches josephriches@gmail.com

GCC's documentation states that by default lto uses 1 job, it can be optionally overriden
with n number of jobs to run in parallel. Pass `-flto=%YJOBS%` when building with GCC LTO to
reduce compilation time.

Clang does not support this and instead uses thin lto for concurrency. Split LTO flags for GCC
and Clang into different variables.

Signed-off-by: Joey Riches <josephriches@gmail.com>
@JoshStrobl
Copy link
Member

LGTM, thanks!

@JoshStrobl JoshStrobl merged commit d972ef8 into getsolus:master Sep 22, 2021
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.

None yet

2 participants