-
Notifications
You must be signed in to change notification settings - Fork 13.4k
using librustc fails when trying to compile a second time #19371
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
Comments
cc @nick29581 |
I ran into this same issue not too long ago. There are two instances of thread-local data that are used in compilation. I can submit a PR for a fix, but the workaround is easy: As the data are thread-local, you can run each compile function in a separate task. |
@murarth it would be great to have a fix if you have the time to put a PR together |
@nick29581 No problem. I'm not sure about writing a test, though. How do I find sysroot from the test program? |
Sweet thanks! On Sat, Nov 29, 2014, 4:47 PM bors [email protected] wrote:
|
The first time it works just fine, but it seems there's some global state somewhere that's messing with the parser. Here's the code: http://is.gd/K0dYsK
The main looks like:
And the error is:
The text was updated successfully, but these errors were encountered: