mirror of
https://github.com/seL4/seL4.git
synced 2026-04-04 22:39:54 +00:00
CMake: Move APPLE host check into x86 branch
This is to more clearly record the OSX host + x86 target assumption when setting CROSS_COMPILER_PREFIX to "x86_64-unknown-linux-gnu-"
This commit is contained in:
@@ -34,8 +34,12 @@ if("${CROSS_COMPILER_PREFIX}" STREQUAL "")
|
||||
set(CROSS_COMPILER_PREFIX "riscv32-unknown-elf-" CACHE INTERNAL "")
|
||||
elseif(RISCV64)
|
||||
set(CROSS_COMPILER_PREFIX "riscv64-unknown-elf-" CACHE INTERNAL "")
|
||||
elseif(APPLE)
|
||||
set(CROSS_COMPILER_PREFIX "x86_64-unknown-linux-gnu-" CACHE INTERNAL "")
|
||||
else()
|
||||
# If we haven't set a target above we assume x86_64/ia32 target
|
||||
if(APPLE)
|
||||
# APPLE is a CMake variable that evaluates to True on a Mac OSX system
|
||||
set(CROSS_COMPILER_PREFIX "x86_64-unknown-linux-gnu-" CACHE INTERNAL "")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user