about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-05-02 00:59:27 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-05-02 11:39:18 -0700
commita82f92177595324f50f28b257ec1a079e04f631b (patch)
tree95f850ab25f15da886e15900d95470d69b81afd2 /src/rustllvm/RustWrapper.cpp
parentadcbf539550eab5ef0b351b1d198d10acecf5301 (diff)
downloadrust-a82f92177595324f50f28b257ec1a079e04f631b.tar.gz
rust-a82f92177595324f50f28b257ec1a079e04f631b.zip
rustc: Add some suppot for mixing rlibs and dylibs
Currently, rustc requires that a linkage be a product of 100% rlibs or 100%
dylibs. This is to satisfy the requirement that each object appear at most once
in the final output products. This is a bit limiting, and the upcoming libcore
library cannot exist as a dylib, so these rules must change.

The goal of this commit is to enable *some* use cases for mixing rlibs and
dylibs, primarily libcore's use case. It is not targeted at allowing an
exhaustive number of linkage flavors.

There is a new dependency_format module in rustc which calculates what format
each upstream library should be linked as in each output type of the current
unit of compilation. The module itself contains many gory details about what's
going on here.

cc #10729
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions