about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-11-12 01:29:09 -0800
committerAlex Crichton <alex@alexcrichton.com>2013-11-29 18:36:14 -0800
commitc1e287af7788261bd50f47a166fbbd3493355a38 (patch)
treed45b71b942fc8793a20338ba8406a2abe54a2d9f /src/rustllvm/RustWrapper.cpp
parent6d6ccb75ff2240ed294fcf6aa57e96c72316954c (diff)
downloadrust-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