Skip to content

Commit 185a717

Browse files
author
Steven Noonan
committed
travis/cmake: don't build sanitizers in foreign architecture Docker containers
Signed-off-by: Steven Noonan <[email protected]>
1 parent de24eda commit 185a717

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.travis/build-cmake.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ BUILD_SANITIZERS=${BUILD_SANITIZERS:-0}
4343
# builder, and it fails to link properly.
4444
[[ $(uname -m) == s390x ]] && BUILD_SANITIZERS=0
4545

46+
# Foreign architecture docker containers don't support sanitizers.
47+
[[ $(uname -m) != x86_64 ]] && grep -q -e AuthenticAMD -e GenuineIntel /proc/cpuinfo && BUILD_SANITIZERS=0
48+
4649
set -x
4750

4851
# Build some tests with sanitizers

0 commit comments

Comments
 (0)