Fix the FreeBSD target

It wasn't expecting a `*.d` file to exist, now it does.
This commit is contained in:
Alex Crichton 2017-11-25 13:56:29 -08:00
parent 614199a8d1
commit 4d7fa243c6
1 changed files with 5 additions and 1 deletions

View File

@ -41,7 +41,11 @@ if [ "$QEMU" != "" ]; then
# Do the standard rigamarole of cross-compiling an executable and then the
# script to run just executes the binary.
cargo build --manifest-path libc-test/Cargo.toml --target $TARGET --tests
cargo build \
--manifest-path libc-test/Cargo.toml \
--target $TARGET \
--test main
rm $CARGO_TARGET_DIR/$TARGET/debug/main-*.d
cp $CARGO_TARGET_DIR/$TARGET/debug/main-* $tmpdir/mount/libc-test
echo 'exec $1/libc-test' > $tmpdir/mount/run.sh