Remove unnecessary variables in toolchain files

Setting `-target` flag explicitly is unnecessary. Whenever this needs to
be explicitly passed through, the coompiler id should be checked.

Changes to the musl build system makes the explicit `C_COMPILER`
variable useless.
This commit is contained in:
Matthew
2019-12-16 17:33:14 +11:00
parent 5ebe5526fd
commit 0e8a2cf05c
2 changed files with 0 additions and 5 deletions

View File

@@ -89,7 +89,6 @@ if("${CROSS_COMPILER_PREFIX}" STREQUAL "")
endif()
set(CMAKE_C_COMPILER ${CROSS_COMPILER_PREFIX}gcc)
set(C_COMPILER gcc)
set(CMAKE_ASM_COMPILER ${CROSS_COMPILER_PREFIX}gcc)
set(CMAKE_CXX_COMPILER ${CROSS_COMPILER_PREFIX}g++)