Skip to content

Commit

Permalink
Fix up native gcc toolchain file
Browse files Browse the repository at this point in the history
And complete other toolchain file.
  • Loading branch information
blapie committed Oct 25, 2024
1 parent 3aa06d5 commit 9bc2852
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 2 deletions.
2 changes: 2 additions & 0 deletions toolchains/aarch64-gcc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ SET(CMAKE_FIND_ROOT_PATH /usr/aarch64-linux-gnu /usr/include/aarch64-linux-gnu
find_program(CMAKE_C_COMPILER
NAMES aarch64-linux-gnu-gcc-12
aarch64-linux-gnu-gcc-11
aarch64-linux-gnu-gcc-10
aarch64-linux-gnu-gcc-9
aarch64-linux-gnu-gcc-8
aarch64-linux-gnu-gcc-7
aarch64-linux-gnu-gcc-6
Expand Down
2 changes: 2 additions & 0 deletions toolchains/armhf-gcc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ SET(CMAKE_FIND_ROOT_PATH /usr/arm-linux-gnueabihf /usr/include/arm-linux-gnueab
find_program(CMAKE_C_COMPILER
NAMES arm-linux-gnueabihf-gcc-12
arm-linux-gnueabihf-gcc-11
arm-linux-gnueabihf-gcc-10
arm-linux-gnueabihf-gcc-9
arm-linux-gnueabihf-gcc-8
arm-linux-gnueabihf-gcc-7
arm-linux-gnueabihf-gcc-6
Expand Down
11 changes: 10 additions & 1 deletion toolchains/native-gcc.cmake
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
find_program(CMAKE_C_COMPILER gcc)
find_program(CMAKE_C_COMPILER
NAMES gcc-12
gcc-11
gcc-10
gcc-9
gcc-8
gcc-7
gcc-6
gcc-5
gcc)
7 changes: 6 additions & 1 deletion toolchains/ppc64el-gcc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ SET(CMAKE_FIND_ROOT_PATH /usr/powerpc64le-linux-gnu /usr/include/powerpc64le-li
find_program(CMAKE_C_COMPILER
NAMES powerpc64le-linux-gnu-gcc-12
powerpc64le-linux-gnu-gcc-11
powerpc64le-linux-gnu-gcc
powerpc64le-linux-gnu-gcc-10
powerpc64le-linux-gnu-gcc-9
powerpc64le-linux-gnu-gcc-8
powerpc64le-linux-gnu-gcc-7
powerpc64le-linux-gnu-gcc-6
powerpc64le-linux-gnu-gcc-5
ppc64el-cc)

SET(CMAKE_AR /usr/powerpc64le-linux-gnu/bin/ar)
Expand Down
4 changes: 4 additions & 0 deletions toolchains/s390x-gcc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ SET(CMAKE_FIND_ROOT_PATH /usr/s390x-linux-gnu /usr/include/s390x-linux-gnu /usr
find_program(CMAKE_C_COMPILER
NAMES s390x-linux-gnu-gcc-12
s390x-linux-gnu-gcc-11
s390x-linux-gnu-gcc-10
s390x-linux-gnu-gcc-9
s390x-linux-gnu-gcc-8
s390x-linux-gnu-gcc-7
s390x-linux-gnu-gcc)

SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
Expand Down

0 comments on commit 9bc2852

Please sign in to comment.