Skip to content

Commit 11356c3

Browse files
committed
working on macOS build
1 parent 067cb35 commit 11356c3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/macOS.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
- name: Install Dependencies
2323
run: brew install --force gcc libffi cmake ninja make
2424

25+
- name: Build macOS port
26+
run: python3 make.py macOS submodules clean mpy_cross DISPLAY=sdl_display INDEV=sdl_pointer
27+
2528
- name: Build ESP32 port
2629
run: python3 make.py esp32 submodules clean mpy_cross BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT DISPLAY=rgb_display INDEV=gt911
2730

@@ -31,5 +34,4 @@ jobs:
3134
- name: Build Raspberry Pi PICO port
3235
run: python3 make.py rp2 submodules clean mpy_cross BOARD=RPI_PICO DISPLAY=rgb_display INDEV=gt911
3336

34-
- name: Build macOS port
35-
run: python3 make.py macOS submodules clean mpy_cross DISPLAY=sdl_display INDEV=sdl_pointer
37+

builder/macOS.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ def compile(): # NOQA
222222

223223
build_sdl()
224224

225+
os.environ['CC'] = 'gcc'
226+
os.environ['LD'] = 'ld'
225227
return_code, _ = spawn(compile_cmd)
226228
if return_code != 0:
227229
sys.exit(return_code)

0 commit comments

Comments
 (0)