Skip to content

Commit e6162ba

Browse files
committed
Use x86_64-elf- with macosx
1 parent d5ee2e9 commit e6162ba

File tree

3 files changed

+49
-45
lines changed

3 files changed

+49
-45
lines changed

.github/workflows/macos.yml

Lines changed: 41 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,48 @@
11
name: MacOS
22
on:
3-
push:
4-
branches-ignore:
5-
- "releases/**"
6-
paths-ignore:
7-
- "**.md"
8-
- ".gitignore"
9-
pull_request:
10-
paths-ignore:
11-
- "**.md"
12-
- ".gitignore"
3+
push:
4+
branches-ignore:
5+
- "releases/**"
6+
paths-ignore:
7+
- "**.md"
8+
- ".gitignore"
9+
- "ubuntu.yml"
10+
pull_request:
11+
paths-ignore:
12+
- "**.md"
13+
- ".gitignore"
14+
- "ubuntu.yml"
1315
jobs:
14-
doxygen:
15-
name: Doxygen
16-
runs-on: macos-latest
17-
steps:
18-
- name: Clone repository
19-
uses: actions/checkout@v3
16+
doxygen:
17+
name: Doxygen
18+
runs-on: macos-latest
19+
steps:
20+
- name: Clone repository
21+
uses: actions/checkout@v3
2022

21-
- name: Install dependencies
22-
run: |
23-
brew update
24-
brew install doxygen
23+
- name: Install dependencies
24+
run: |
25+
brew update
26+
brew install x86_64-elf-binutils x86_64-elf-gcc git cmake qemu nasm e2fsprogs doxygen
2527
26-
- name: Generate documentation
27-
run: |
28-
cmake -B build -D DOXYGEN_WARN_AS_ERROR=NO
29-
cmake --build build --target mentos_documentation
28+
- name: Generate documentation
29+
run: |
30+
cmake -B build -D DOXYGEN_WARN_AS_ERROR=NO
31+
cmake --build build --target mentos_documentation
3032
31-
build:
32-
name: Build
33-
runs-on: macos-latest
34-
steps:
35-
- name: Clone repository
36-
uses: actions/checkout@v3
33+
build:
34+
name: Build
35+
runs-on: macos-latest
36+
steps:
37+
- name: Clone repository
38+
uses: actions/checkout@v3
3739

38-
- name: Install dependencies
39-
run: |
40-
brew update
41-
brew install i386-elf-binutils i386-elf-gcc git cmake qemu nasm e2fsprogs
42-
43-
- name: Build
44-
run: |
45-
cmake -B build
46-
cmake --build build --parallel 2
40+
- name: Install dependencies
41+
run: |
42+
brew update
43+
brew install x86_64-elf-binutils x86_64-elf-gcc git cmake qemu nasm e2fsprogs
44+
45+
- name: Build
46+
run: |
47+
cmake -B build
48+
cmake --build build --parallel 2

.github/workflows/ubuntu.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ on:
66
paths-ignore:
77
- "**.md"
88
- ".gitignore"
9+
- "macos.yml"
910
pull_request:
1011
paths-ignore:
1112
- "**.md"
1213
- ".gitignore"
14+
- "macos.yml"
1315
jobs:
1416
doxygen:
1517
name: Doxygen

CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ if((${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Darwin") OR APPLE)
3131
# Set the Apple MacOSx compilers.
3232
if(CMAKE_VERSION VERSION_LESS "3.6.0")
3333
include(CMakeForceCompiler)
34-
cmake_force_c_compiler(i386-elf-gcc Clang)
35-
cmake_force_cxx_compiler(i386-elf-g++ Clang)
34+
cmake_force_c_compiler(x86_64-elf-gcc Clang)
35+
cmake_force_cxx_compiler(x86_64-elf-g++ Clang)
3636
else()
37-
set(CMAKE_C_COMPILER i386-elf-gcc)
38-
set(CMAKE_CXX_COMPILER i386-elf-g++)
39-
set(CMAKE_AR i386-elf-ar)
37+
set(CMAKE_C_COMPILER x86_64-elf-gcc)
38+
set(CMAKE_CXX_COMPILER x86_64-elf-g++)
39+
set(CMAKE_AR x86_64-elf-ar)
4040
endif()
4141
# Speicfy the linker.
42-
set(CMAKE_LINKER i386-elf-ld)
42+
set(CMAKE_LINKER x86_64-elf-ld)
4343
# Specify the linker flags.
4444
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -nostdlib")
4545
elseif((${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows") OR WIN32)

0 commit comments

Comments
 (0)