Commit b99af7f1 authored by qinsoon's avatar qinsoon

use clang as CC for linux compilation

parent b1bebecf
Pipeline #27 failed with stage
in 4 minutes and 2 seconds
......@@ -21,4 +21,4 @@ image: "qinsoon/ubuntu-zebu-test:v0.1"
test:cargo:
script:
- rustc --version && cargo --version # Print version info for debugging
- 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 CC=clang cargo test
......@@ -65,7 +65,7 @@ echo "ARCH: $MACH"
echo "---------"
if [ "$OS" == "linux" ]; then
RUSTFLAGS=-Zincremental=target/incr-cache RUST_BACKTRACE=1 RUST_TEST_THREADS=1 CLANG_FOR_AOT=clang-3.8 cargo test "$@"
RUSTFLAGS=-Zincremental=target/incr-cache RUST_BACKTRACE=1 RUST_TEST_THREADS=1 CC=clang-3.8 CLANG_FOR_AOT=clang-3.8 cargo test "$@"
elif [ "$OS" == "Darwin" ]; then
RUSTFLAGS=-Zincremental=target/incr-cache RUST_BACKTRACE=1 RUST_TEST_THREADS=1 cargo test "$@"
else
......
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