Use x86_64-elf-gcc under MacOS

This commit is contained in:
Enrico Fraccaroli (Galfurian)
2023-11-29 10:17:45 -05:00
parent b7c32fc102
commit 237bfcefb3
2 changed files with 2 additions and 5 deletions
-5
View File
@@ -18,11 +18,6 @@ jobs:
build:
name: Build
runs-on: macos-latest
# Set environment variables
env:
# We globally set CC and CXX.
CC: x86_64-elf-gcc
CXX: x86_64-elf-g++
steps:
- name: Clone repository
uses: actions/checkout@v3
+2
View File
@@ -31,6 +31,8 @@ message(STATUS "Kernel version : ${CMAKE_SYSTEM_VERSION}")
if((${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Darwin") OR APPLE)
# Specify the linker flags.
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -nostdlib")
set(CMAKE_C_COMPILER /usr/local/bin/x86_64-elf-gcc)
set(CMAKE_CXX_COMPILER /usr/local/bin/x86_64-elf-g++)
elseif((${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows") OR WIN32)
# Windows set(EMULATOR_FLAGS ${EMULATOR_FLAGS} -sdl)
else()