Skip to content

librustllvm should be a static library #10745

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

Closed
alexcrichton opened this issue Dec 1, 2013 · 0 comments
Closed

librustllvm should be a static library #10745

alexcrichton opened this issue Dec 1, 2013 · 0 comments

Comments

@alexcrichton
Copy link
Member

There's no reason for librustllvm to be built as a dynamic library any more. All of the dependent LLVM libraries are all static libraries, so we should be able to slurp in all these dependencies statically.

The tough part here is that we use llvm-config to figure out the set of LLVM libraries to link to, but I think that this would require hard-coding all of them into #[link(name = "foo", kind = "static")] on the extern block in librustc/lib/llvm.rs file. I don't really see a way around this.

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

1 participant