-
Notifications
You must be signed in to change notification settings - Fork 114
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
mrustc produces a code which compiling hours by Apple Clang 12 (and below) #255
Comments
If this file takes that long in clang, then that's a clang bug. If you can determine what function it's choking on and a way to reduce it's complexity, then that'd be useful. |
@thepowersgang any idea how can I do it? |
No idea at all - as said, this is a clang issue (the file, at least on my builds) isn't that big (6.1M) |
Clang 9 introduced |
For records: mrustc-255.zip
I have no idea how to debug it future. @bjorn3 any thoughts? |
Not sure. |
Environment: macOS 10.15, mrustc from 87b7481 and rustc-1.54.0-src with additional patch https://github.com/catap/rust-legacy-bootstrap/blob/master/rustc-1.54.0-src.patch.
Bootstrapping rust requires incredible time like couple of hours.
The root cause is compiling
libaho_corasick-0_7_13_H1.rlib.c
. Just to compare a time which is required to compileaho_corasick
on macOS 11 and macOS 10.15 via Github CI:macOS 10.15:
macOS 11:
I've installed to this machine a few clangs: 10, 11, 12 and 13 and made small test which contains simpler args:
an output:
The text was updated successfully, but these errors were encountered: