Remove build script in favor of rust-lang/cargo#3064

This commit is contained in:
David Tolnay 2016-08-31 21:05:40 -07:00
parent 54cee86fd3
commit cdb0e6c899
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -1,32 +0,0 @@
#!/bin/bash
set -xeuo pipefail
DIR=$(cd "$(dirname "$0")" && pwd)
export RUSTC=${RUSTC:-$HOME/.local/bin/rustc}
cargo build || true
"$RUSTC" \
"$DIR"/../serde_derive/src/lib.rs \
--crate-name serde_derive \
--crate-type rustc-macro \
-C prefer-dynamic \
-g \
--out-dir "$DIR"/target/debug/deps \
--emit=dep-info,link \
-L dependency="$DIR"/target/debug/deps \
--extern serde_codegen="$DIR"/target/debug/deps/libserde_codegen.rlib
"$RUSTC" \
src/main.rs \
--crate-name tmp_test \
--crate-type bin \
-g \
--out-dir "$DIR"/target/debug \
--emit=dep-info,link \
-L dependency="$DIR"/target/debug/deps \
--extern serde_json=$(echo "$DIR"/target/debug/deps/libserde_json-*.rlib) \
--extern serde=$(echo "$DIR"/target/debug/deps/libserde-*.rlib) \
--extern serde_derive="$DIR"/target/debug/deps/libserde_derive.so