build: update to support building under a hosted cross-compiler

This commit is contained in:
2026-07-19 13:24:41 +01:00
parent bd6872d672
commit a14d0173c8
4 changed files with 19 additions and 6 deletions
+2 -4
View File
@@ -1,10 +1,6 @@
cmake_minimum_required(VERSION 3.31)
project(magenta C ASM)
if (NOT BUILD_TOOLS_DIR)
message(FATAL_ERROR "No build tools directory specified. Please run build.sh")
endif ()
set(CMAKE_C_STANDARD 17)
set(kernel_arch x86_64)
@@ -85,3 +81,5 @@ target_include_directories(magenta_debug PRIVATE
libc/include
libmagenta/include
arch/${kernel_arch}/include)
install(TARGETS ${kernel_exe_name} DESTINATION boot)