From bff5b824168b5137958efe5212c09cae21391d25 Mon Sep 17 00:00:00 2001 From: Ivan Velickovic Date: Tue, 5 Mar 2024 11:38:46 +1100 Subject: [PATCH] Fix building on macOS hosts Explicitly set CMake to use a 'Generic' target so that it does not pass any macOS specific compiler flags (e.g -isysroot) to our embedded aarch64-none-elf- toolchain that does not support them. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 947fa2a32..0bee98d61 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.2) set(MUSL $ENV{MUSL}) +set(CMAKE_SYSTEM_NAME Generic) + set(CMAKE_C_COMPILER aarch64-none-elf-gcc) set(CMAKE_CXX_COMPILER aarch64-none-elf-g++) set(CMAKE_C_COMPILER_WORKS 1)