Removed unnecessary toolchain files

This commit is contained in:
Patrix
2024-03-03 14:56:14 +01:00
parent ee2a72fc84
commit bc331091ab
6 changed files with 16 additions and 110 deletions

View File

@@ -5,22 +5,9 @@
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR arm)
# specify shared library suffix
set(OUT_FILE_SUFFIX "arm")
if (${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "arm.*")
# specify native compiler
set(CMAKE_C_COMPILER gcc)
set(CMAKE_CXX_COMPILER g++)
else()
# specify cross compiler
set(CMAKE_C_COMPILER arm-linux-gnueabi-gcc)
set(CMAKE_CXX_COMPILER arm-linux-gnueabi-g++)
endif()
# specify the compiler flags
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -static-libgcc -static-libstdc++")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libgcc -static-libstdc++")
# specify cross compiler
set(CMAKE_C_COMPILER arm-linux-gnueabi-gcc)
set(CMAKE_CXX_COMPILER arm-linux-gnueabi-g++)
# specify the paths for find_(name), functions (target environment).
set(CMAKE_FIND_ROOT_PATH