Skip to content

Commit 2459889

Browse files
alexcrichtonkripken
authored andcommitted
Compile Linux release binaries with Clang (#2274)
This fixes #2273 for... unknown reasons. The tl;dr; is that the current release binaries built in this Alpine container seem to segfault when run over some wasm files when an exception is thrown, but clang-built binaries magically seems to not segfault!
1 parent 0ec9ddf commit 2459889

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jobs:
125125
- alpine() { docker exec -it alpine "$@"; }
126126
install:
127127
- alpine apk update
128-
- alpine apk add build-base cmake git python2 python3
128+
- alpine apk add build-base cmake git python2 python3 clang
129129
script:
130130
- alpine cmake .
131131
- alpine make -j2
@@ -145,6 +145,8 @@ jobs:
145145
-DCMAKE_VERBOSE_MAKEFILE=ON
146146
-DCMAKE_CXX_FLAGS="-static -no-pie"
147147
-DCMAKE_C_FLAGS="-static -no-pie" .
148+
-DCMAKE_C_COMPILER=clang
149+
-DCMAKE_CXX_COMPILER=clang++
148150
- alpine make -j2
149151
- alpine find bin/ -type f -perm -u=x -exec strip {} +
150152
- alpine ls -lh bin/

0 commit comments

Comments
 (0)