Merge pull request #303 from sunfishcode/no_std_merge

Merge no_std into master
This commit is contained in:
Dan Gohman
2018-04-20 12:11:53 -07:00
committed by GitHub
26 changed files with 318 additions and 74 deletions

32
cranelift/test-no_std.sh Executable file
View File

@@ -0,0 +1,32 @@
#!/bin/bash
set -euo pipefail
# This is the test script for testing the no_std configuration of
# packages which support it.
# Repository top-level directory.
cd $(dirname "$0")
topdir=$(pwd)
function banner() {
echo "====== $@ ======"
}
# Test those packages which have no_std support.
LIBS="codegen frontend wasm native module simplejit umbrella"
cd "$topdir"
for LIB in $LIBS
do
banner "Rust unit tests in $LIB"
cd "lib/$LIB"
# Test with just "core" enabled.
cargo test --no-default-features --features core
# Test with "core" and "std" enabled at the same time.
cargo test --features core
cd "$topdir"
done
banner "OK"