diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-11-12 01:29:09 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-11-29 18:36:14 -0800 |
| commit | c1e287af7788261bd50f47a166fbbd3493355a38 (patch) | |
| tree | d45b71b942fc8793a20338ba8406a2abe54a2d9f /src/rustllvm/RustWrapper.cpp | |
| parent | 6d6ccb75ff2240ed294fcf6aa57e96c72316954c (diff) | |
| download | rust-c1e287af7788261bd50f47a166fbbd3493355a38.tar.gz rust-c1e287af7788261bd50f47a166fbbd3493355a38.zip | |
Make -Z gen-crate-map usable for I/O
In #10422, I didn't actually test to make sure that the '-Z gen-crate-map' option was usable before I implemented it. The crate map was indeed generated when '-Z gen-crate-map' was specified, but the I/O factory slot was empty because of an extra check in trans about filling in that location. This commit both fixes that location, and checks in a "fancy test" which does lots of fun stuff. The test will use the rustc library to compile a rust crate, and then compile a C program to link against that crate and run the C program. To my knowledge this is the first test of its kind, so it's a little ad-hoc, but it seems to get the job done. We could perhaps generalize running tests like this, but for now I think it's fine to have this sort of functionality tucked away in a test.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
