diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-07-01 08:37:54 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-07-05 12:45:42 -0700 |
| commit | cc3c8bbfaf5af19caf3deb131a995a65ca4674f9 (patch) | |
| tree | 736c2fddddef10a410d8cafa4092b754504aafbd /src/rustllvm/ExecutionEngineWrapper.cpp | |
| parent | df4ea9c39a355e4cff425cca7d58e7758cb3461c (diff) | |
| download | rust-cc3c8bbfaf5af19caf3deb131a995a65ca4674f9.tar.gz rust-cc3c8bbfaf5af19caf3deb131a995a65ca4674f9.zip | |
rustc: Add a flag for specifying dependencies
This comit implements a new flag, --extern, which is used to specify where a crate is located. The purpose of this flag is to bypass the normal crate loading/matching of the compiler to point it directly at the right file. This flag takes the form `--extern foo=bar` where `foo` is the name of a crate and `bar` is the location at which to find the crate. Multiple `--extern` directives are allowed with the same crate name to specify the rlib/dylib pair for a crate. It is invalid to specify more than one rlib or more than one dylib, and it's required that the crates are valid rust crates. I have also added some extensive documentation to metadata::loader about how crate loading should work. RFC: 0035-remove-crate-id
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
