Specify the C compiler in a variable for user lvl

Having the basic compiler name in a variable lets us pass it around to
any other user level project (e.g musllibc)
This commit is contained in:
Matthew
2019-12-12 14:56:09 +11:00
parent b0bdaf9f50
commit 1d8b5d4ab1
2 changed files with 5 additions and 0 deletions

View File

@@ -89,6 +89,7 @@ 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++)