Skip to content

Commit cfdb48e

Browse files
authored
Merge pull request #109 from wasmx/ci-clang
Make clang the default compiler on CircleCI
2 parents 7da5e31 + 9a740e4 commit cfdb48e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.circleci/config.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,25 @@ jobs:
66
- image: rust:1
77
steps:
88
- checkout
9+
- run:
10+
name: Install libclang
11+
command: |
12+
gcc --version
13+
g++ --version
14+
apt-get -y update
15+
apt-get -y install libclang-3.8-dev clang-3.8 libclang-dev libgcc-6-dev libclang-common-3.8-dev cmake
16+
# Make clang the default compiler (needed for binaryen, wabt and others with native bindings)
17+
update-alternatives --install /usr/bin/cc cc /usr/bin/clang-3.8 100
18+
update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-3.8 100
19+
gcc --version
20+
g++ --version
921
- run:
1022
name: Update rustc
1123
command: |
1224
rustup component add rustfmt-preview
1325
rustup update
26+
cargo --version
27+
rustc --version
1428
- run:
1529
name: Check formatting
1630
command: |

0 commit comments

Comments
 (0)