Commit 7fadbf8d authored by qinsoon's avatar qinsoon

use CC env var

parent 02d15a7d
......@@ -65,7 +65,7 @@ echo "ARCH: $MACH"
echo "---------"
if [ "$OS" == "linux" ]; then
RUSTFLAGS=-Zincremental=target/incr-cache RUST_BACKTRACE=1 RUST_TEST_THREADS=1 CC=clang-3.8 CLANG_FOR_AOT=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
RUSTFLAGS=-Zincremental=target/incr-cache RUST_BACKTRACE=1 RUST_TEST_THREADS=1 cargo test "$@"
else
......
......@@ -16,7 +16,7 @@ pub mod c_api;
pub fn get_test_clang_path() -> String {
use std::env;
match env::var("CLANG_FOR_AOT") {
match env::var("CC") {
Ok(val) => val,
Err(_) => "clang".to_string()
}
......
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