diff options
author | Jack Lloyd <[email protected]> | 2018-12-09 11:45:50 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-12-09 11:45:50 -0500 |
commit | 30698817d787adde42256e32dde0f32c082cd739 (patch) | |
tree | addc63ab8c57c3730ed97151691eca26007870f7 /src/scripts | |
parent | 537b94953a5ffc490d7f656dff347ef3fc795663 (diff) |
Add an i386 CI target to check on 32-bit asm
Diffstat (limited to 'src/scripts')
-rwxr-xr-x | src/scripts/ci/setup_travis.sh | 12 | ||||
-rw-r--r-- | src/scripts/ci/travis.yml | 3 | ||||
-rwxr-xr-x | src/scripts/ci_build.py | 3 |
3 files changed, 14 insertions, 4 deletions
diff --git a/src/scripts/ci/setup_travis.sh b/src/scripts/ci/setup_travis.sh index f16eff04c..46292cbb6 100755 --- a/src/scripts/ci/setup_travis.sh +++ b/src/scripts/ci/setup_travis.sh @@ -15,14 +15,18 @@ if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -qq update sudo apt-get install valgrind - elif [ "$BUILD_MODE" = "cross-win64" ]; then - sudo apt-get -qq update - sudo apt-get install wine g++-mingw-w64-x86-64 - elif [ "$BUILD_MODE" = "gcc4.8" ]; then sudo apt-get -qq update sudo apt-get install g++-4.8 + elif [ "$BUILD_MODE" = "cross-i386" ]; then + sudo apt-get -qq update + sudo apt-get install g++-multilib linux-libc-dev libc6-dev-i386 + + elif [ "$BUILD_MODE" = "cross-win64" ]; then + sudo apt-get -qq update + sudo apt-get install wine g++-mingw-w64-x86-64 + elif [ "$BUILD_MODE" = "cross-arm32" ]; then sudo apt-get -qq update sudo apt-get install qemu-user g++-arm-linux-gnueabihf diff --git a/src/scripts/ci/travis.yml b/src/scripts/ci/travis.yml index 839d0c0dd..f93987b26 100644 --- a/src/scripts/ci/travis.yml +++ b/src/scripts/ci/travis.yml @@ -22,6 +22,7 @@ env: - BUILD_MODE="fuzzers" - BUILD_MODE="coverage" - BUILD_MODE="valgrind" + - BUILD_MODE="cross-i386" - BUILD_MODE="cross-ppc32" - BUILD_MODE="cross-ppc64" - BUILD_MODE="cross-arm32" @@ -78,6 +79,8 @@ matrix: - compiler: clang env: BUILD_MODE="cross-mips64" - compiler: clang + env: BUILD_MODE="cross-i386" + - compiler: clang env: BUILD_MODE="gcc4.8" # No ARM Clang compiler on Linux diff --git a/src/scripts/ci_build.py b/src/scripts/ci_build.py index 00f20bff4..8c899e63d 100755 --- a/src/scripts/ci_build.py +++ b/src/scripts/ci_build.py @@ -146,6 +146,9 @@ def determine_flags(target, target_os, target_cpu, target_cc, cc_bin, ccache, ro flags += ['--cpu=arm64', '--cc-abi-flags=-arch arm64 -stdlib=libc++'] else: raise Exception("Unknown cross target '%s' for iOS" % (target)) + elif target == 'cross-i386': + flags += ['--cpu=x86_32'] + elif target == 'cross-win64': # MinGW in 16.04 is lacking std::mutex for unknown reason cc_bin = 'x86_64-w64-mingw32-g++' |