diff options
author | Roberto Alanis <alanisbaez@google.com> | 2021-12-03 01:23:02 +0000 |
---|---|---|
committer | Roberto Alanis <alanisbaez@google.com> | 2021-12-16 19:26:36 +0000 |
commit | c6127571b0e2aaf5b6d3aa13b80eca28969f35a2 (patch) | |
tree | bd5c799266c14098c205b59db9fe5d0fd00273d3 | |
parent | 502094488ad5acf778c63fecc6158d263159d970 (diff) | |
download | libwebm-c6127571b0e2aaf5b6d3aa13b80eca28969f35a2.tar.gz |
Jenkins Port: support clang-i686 compilation
Change-Id: Iec2f82990b94e29364e8e0e7cc4e39bf898860e6
Bug: b:185520494
-rwxr-xr-x | infra/compile.sh | 7 |
1 files changed, 6 insertions, 1 deletions
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") |