Skip to content

Commit

Permalink
ci: Use clang as the C++ compiler for x86_64-gnu-debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwoerister committed Jan 30, 2019
1 parent 9c29517 commit 4f534ff
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/ci/docker/x86_64-gnu-debug/Dockerfile
@@ -1,4 +1,4 @@
FROM ubuntu:16.04
FROM ubuntu:18.10

RUN apt-get update && apt-get install -y --no-install-recommends \
g++ \
Expand All @@ -17,7 +17,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
cmake \
sudo \
gdb \
xz-utils
xz-utils \
lld \
clang

COPY scripts/sccache.sh /scripts/
RUN sh /scripts/sccache.sh
Expand All @@ -30,7 +32,11 @@ ENV RUST_CONFIGURE_ARGS \
--enable-debug \
--enable-lld \
--enable-lldb \
--enable-optimize
--enable-optimize \
--set target.x86_64-unknown-linux-gnu.linker=clang \
--set target.x86_64-unknown-linux-gnu.cc=clang \
--set target.x86_64-unknown-linux-gnu.cxx=clang++

ENV SCRIPT \
python2.7 ../x.py build && \
python2.7 ../x.py test src/test/run-make-fulldeps --test-args clang

0 comments on commit 4f534ff

Please sign in to comment.