From 0257085279617a0e734d9bc1af68adc01efb67e5 Mon Sep 17 00:00:00 2001 From: btwiuse <54848194+btwiuse@users.noreply.github.com> Date: Sun, 3 Nov 2019 00:41:19 +0800 Subject: [PATCH] Add linux-x86 build --- .travis.yml | 4 ++++ src/get-clang.sh | 3 +++ tests/basic.sh | 1 + 3 files changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index 46df6dcdef..80f21f2082 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,10 @@ matrix: - name: "linux-x64" os: linux dist: bionic + - name: "linux-x86" + os: linux + dist: bionic + env: EXTRA_FLAGS='target_cpu="x86"' - name: "linux-arm64" os: linux dist: bionic diff --git a/src/get-clang.sh b/src/get-clang.sh index 6856b8bae0..885c3a2e6f 100755 --- a/src/get-clang.sh +++ b/src/get-clang.sh @@ -27,6 +27,9 @@ if [ "$ARCH" = Linux ]; then build_sysroot I386 build_sysroot ARM ;; + x86) + build_sysroot I386 + ;; esac fi diff --git a/tests/basic.sh b/tests/basic.sh index b813b88992..f27c51ea1e 100755 --- a/tests/basic.sh +++ b/tests/basic.sh @@ -7,6 +7,7 @@ if [ "$(uname)" = Linux ]; then case "$target_cpu" in arm64) naive="qemu-aarch64 -L src/build/linux/debian_sid_arm64-sysroot $naive";; arm) naive="qemu-arm -L src/build/linux/debian_sid_arm-sysroot $naive";; + x86) naive="qemu-i386 -L src/build/linux/debian_sid_i386-sysroot $naive";; esac fi