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

Reduce gcc build time by disabling libsanitizer #51

Open
shao-hua-li opened this issue Oct 17, 2023 · 1 comment
Open

Reduce gcc build time by disabling libsanitizer #51

shao-hua-li opened this issue Oct 17, 2023 · 1 comment

Comments

@shao-hua-li
Copy link

I found that by --disable-libsanitizer, the gcc compilation time would reduce significantly from 15min to less than 5min. This would also fix the old gcc build issue mentioned in #50

@shao-hua-li shao-hua-li changed the title Reduce gcc build time by diabling libsanitizer Reduce gcc build time by disabling libsanitizer Oct 17, 2023
@thetheodor
Copy link
Member

This can be done by passing an extra argument --additional-configure-flags='--disable-libsanitizer', e.g.:

ccbuilder build gcc master --additional-configure-flags="--disable-libsanitizer"

I didn't want to make this the default as there would be no way to re-enable it. Maybe instead of passing additional configure flags, a better way would be to allow replacing the whole set of configure flags/arguments, then the default doesn't matter

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

No branches or pull requests

2 participants