Use x86_64-elf-gcc under MacOS

This commit is contained in:
Enrico Fraccaroli (Galfurian)
2023-11-29 10:34:42 -05:00
parent c8544ad6a4
commit 654a3165c0
5 changed files with 29 additions and 2 deletions
+5
View File
@@ -6,6 +6,11 @@ cmake_minimum_required(VERSION 3.1...3.22)
# Initialize the project.
project(tests C)
if((${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Darwin") OR APPLE)
set(CMAKE_C_COMPILER x86_64-elf-gcc)
set(CMAKE_CXX_COMPILER x86_64-elf-g++)
endif()
# =============================================================================
# List of programs.
# =============================================================================