Skip to content

Commit

Permalink
Fix building on macOS hosts
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Ivan-Velickovic authored and ertos committed Mar 5, 2024
1 parent 5c81320 commit bff5b82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bff5b82

Please sign in to comment.