1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-30 00:00:15 +01:00

cmake: add bootstrap toolchain file

This commit is contained in:
Stefan Lankes 2017-04-11 12:11:36 +02:00
parent fae6a7f001
commit e18a37cf2c
2 changed files with 15 additions and 2 deletions

View file

@ -0,0 +1,11 @@
include(${CMAKE_CURRENT_LIST_DIR}/HermitCore-Toolchain-x86.cmake)
include_guard()
set(CMAKE_C_COMPILER_WORKS 1 CACHE INTERNAL "")
set(CMAKE_CXX_COMPILER_WORKS 1 CACHE INTERNAL "")
# unset unneeded compilers
unset(CMAKE_Go_COMPILER)
unset(CMAKE_Fortran_COMPILER)
set(BOOTSTRAP true)

View file

@ -77,8 +77,10 @@ set(HERMIT_KERNEL_INCLUDES
#
# Furthermore this will produce a sensible error message if the toolchain cannot
# be found.
enable_language(C CXX Fortran Go)
include(${CMAKE_CURRENT_LIST_DIR}/HermitCore-Paths.cmake)
if(NOT BOOTSTRAP)
enable_language(C CXX Fortran Go)
include(${CMAKE_CURRENT_LIST_DIR}/HermitCore-Paths.cmake)
endif()
# find elfedit, CMake doesn't use this program, so we have to find it ourself
find_toolchain_program(elfedit)