Skip to content

Commit

Permalink
fix for ARM cross-compiling CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hcab14 committed Oct 19, 2020
1 parent 5de1f27 commit 6fbee50
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ matrix:

# Job 7 ... ARMv7 cross compile
- name: Linux ARMv7 Qemu GCC 7
env: MATRIX_EVAL="CC=gcc-7 && CXX=g++-7 && CMAKE_ARG=\"-DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchains/arm-linux-gnueabihf.cmake\" && QEMU_ARCH=arm"
env: MATRIX_EVAL="CC=gcc-7 && CXX=g++-7 && CMAKE_ARG=-DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchains/arm-linux-gnueabihf.cmake && QEMU_ARCH=arm"
addons: {apt: {sources: "ubuntu-toolchain-r-test", packages: [*common_packages, g++-arm-linux-gnueabihf, qemu-user]}}

# Job 8 ... ARMv8 (aarch64) cross compile
- name: Linux ARMv8 (aarch64) Qemu GCC 7
env: MATRIX_EVAL="CC=gcc-7 && CXX=g++-7 && CMAKE_ARG=\"-DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchains/aarch64-linux-gnu.cmake\""
env: MATRIX_EVAL="CC=gcc-7 && CXX=g++-7 && CMAKE_ARG=-DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchains/aarch64-linux-gnu.cmake"
TOOLCHAIN=LINARO
TARGET=aarch64-linux-gnu
QEMU_ARCH=aarch64
Expand Down
2 changes: 1 addition & 1 deletion cmake/Toolchains/aarch64-linux-gnu.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR ARM)
set(CMAKE_SYSTEM_PROCESSOR aarch64)

if(MINGW OR CYGWIN OR WIN32)
set(UTIL_SEARCH_CMD where)
Expand Down
2 changes: 1 addition & 1 deletion cmake/Toolchains/arm-linux-gnueabihf.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR ARM)
set(CMAKE_SYSTEM_PROCESSOR arm)

if(MINGW OR CYGWIN OR WIN32)
set(UTIL_SEARCH_CMD where)
Expand Down

0 comments on commit 6fbee50

Please sign in to comment.