Fix macOS compiler on GitHub Actions

This commit is contained in:
Aoran Zeng 2025-07-22 17:38:44 +08:00
parent 1b8323816c
commit 2ea11f3e83
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
2 changed files with 11 additions and 9 deletions

View File

@ -22,13 +22,13 @@ jobs:
- name: 检出代码
uses: actions/checkout@v4
- name: 检查 Clang 版本
- name: 检查编译器版本
run: |
clang --version
- name: 检查 GCC 版本
run: |
echo
gcc --version
echo
gcc-14 --version
- name: 为 arm64 (AArch64) 构建
run: |
@ -55,13 +55,13 @@ jobs:
- name: 检出代码
uses: actions/checkout@v4
- name: 检查 Clang 版本
- name: 检查编译器版本
run: |
clang --version
- name: 检查 GCC 版本
run: |
echo
gcc --version
echo
gcc-14 --version
- name: 为 x64 构建
run: |

View File

@ -101,8 +101,10 @@ ifeq ($(MAKECMDGOALS), build-in-ci-release-mode)
endif
# GitHub Actions 上的 macOS 中的 LLVM 太老了
# 而且 gcc 被重命名为了 clang
# 需要直接指定版本
ifeq ($(On-macOS), 1)
CC = gcc
CC = gcc-14
endif
endif