]> git.lizzy.rs Git - rust.git/commit
mk: Add `-C metadata` for compiling crates we ship
authorAlex Crichton <alex@alexcrichton.com>
Mon, 28 Mar 2016 16:19:25 +0000 (09:19 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 28 Mar 2016 16:19:25 +0000 (09:19 -0700)
commit6908e4e10df35a660c6adead67749c22b14998f9
treedc252222dc007a54a11889148630c60660dc6105
parent3602f34e9cfe542210b6ac4302ae8d0f0799965b
mk: Add `-C metadata` for compiling crates we ship

This should re-enable all external builds of crates with the same name. Right
now Cargo doesn't pass `-C metadata` for the top-level library being compiled,
so if that library is called `libc`, for example, then it won't be able to link
to the standard library which *also* has a `libc` library compiled without `-C
metadata`. This can result in naming conflicts which need to be resolved.

By passing `-C metadata` to the in-tree crates we ship it should add some extra
salt to all symbol names to ensure that they don't collide.
mk/target.mk