Skip to content

Commit

Permalink
Debian's LLVM 3.7 packages do not have msan support
Browse files Browse the repository at this point in the history
  • Loading branch information
zimmski committed Sep 8, 2016
1 parent 735e993 commit a807181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/test-throughout.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ clang --version
LLVM_VERSION=$(clang --version | grep --max-count=1 "clang version" | sed -r 's/^.+clang version ([0-9]+\.[0-9]+).+$/\1/')

# Test with the address sanitizer
if [ $(echo "$LLVM_VERSION>=3.6" | bc -l) -ne 0 ]; then CGO_LDFLAGS="-L`llvm-config --libdir`" go test -timeout 60s -v -msan ./...; fi
if [ $(echo "$LLVM_VERSION>=3.6" | bc -l) -ne 0 ] && [ $(find `llvm-config --libdir` | grep libclang_rt.san-x86_64.a | wc -l) -ne 0 ]; then CGO_LDFLAGS="-L`llvm-config --libdir`" go test -timeout 60s -v -msan ./...; fi

# Test with the race detector
CGO_LDFLAGS="-L`llvm-config --libdir`" go test -timeout 60s -v -race ./...

0 comments on commit a807181

Please sign in to comment.