Commit 3c62eb99 authored by qinsoon's avatar qinsoon

cargo generate staticlib, also test CI build email

parent 7e244053
...@@ -5,8 +5,7 @@ authors = [ "Your name <you@example.com>" ] ...@@ -5,8 +5,7 @@ authors = [ "Your name <you@example.com>" ]
build = "build.rs" build = "build.rs"
[lib] [lib]
# crate-type = ["staticlib", "rlib", "dylib"] crate-type = ["staticlib", "rlib", "dylib"]
crate-type = ["rlib", "dylib"]
doctest = false doctest = false
[features] [features]
......
...@@ -64,9 +64,10 @@ echo "KERNEL: $KERNEL" ...@@ -64,9 +64,10 @@ echo "KERNEL: $KERNEL"
echo "ARCH: $MACH" echo "ARCH: $MACH"
echo "---------" echo "---------"
rm emit/* rm -rf emit/*
if [ "$OS" == "linux" ]; then if [ "$OS" == "linux" ]; then
rm -rf target/*
RUSTFLAGS=-Zincremental=target/incr-cache RUST_BACKTRACE=1 RUST_TEST_THREADS=1 CC=clang-3.8 cargo test "$@" RUSTFLAGS=-Zincremental=target/incr-cache RUST_BACKTRACE=1 RUST_TEST_THREADS=1 CC=clang-3.8 cargo test "$@"
elif [ "$OS" == "Darwin" ]; then elif [ "$OS" == "Darwin" ]; then
RUSTFLAGS=-Zincremental=target/incr-cache RUST_BACKTRACE=1 RUST_TEST_THREADS=1 cargo test "$@" RUSTFLAGS=-Zincremental=target/incr-cache RUST_BACKTRACE=1 RUST_TEST_THREADS=1 cargo test "$@"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment