From c6127571b0e2aaf5b6d3aa13b80eca28969f35a2 Mon Sep 17 00:00:00 2001 From: Roberto Alanis Date: Fri, 3 Dec 2021 01:23:02 +0000 Subject: Jenkins Port: support clang-i686 compilation Change-Id: Iec2f82990b94e29364e8e0e7cc4e39bf898860e6 Bug: b:185520494 --- infra/compile.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/infra/compile.sh b/infra/compile.sh index 8f54663..9fa5208 100755 --- a/infra/compile.sh +++ b/infra/compile.sh @@ -42,7 +42,8 @@ Usage: compile.sh BUILD_TYPE TARGET Options: BUILD_TYPE supported build type (static, static-debug) TARGET supported target platform compilation: (native, native-clang, - i686-w64-mingw32, x86_64-w64-mingw32, native-Makefile.unix) + clang-i686, i686-w64-mingw32, x86_64-w64-mingw32, + native-Makefile.unix) Environment variables: WORKSPACE directory where the build is done EOF @@ -99,6 +100,10 @@ case "${TARGET}" in TOOLCHAIN_FILE_FLAG="-DCMAKE_TOOLCHAIN_FILE=${LIBWEBM_ROOT}/build" case "${TARGET}" in native-clang) opts+=("-DCMAKE_CXX_COMPILER=clang++") ;; + clang-i686) + opts+=("-DCMAKE_CXX_COMPILER=clang++") + opts+=("-DCMAKE_CXX_FLAGS=-m32") + ;; native) ;; # No additional flags needed. i686-w64-mingw32) opts+=("${TOOLCHAIN_FILE_FLAG}/x86-mingw-gcc.cmake") -- cgit v1.2.3