mirror of
https://gitee.com/RubyMetric/chsrc.git
synced 2025-12-25 20:52:49 +00:00
Use `gcc` on `macOS` when CI
Some checks are pending
Publish 'chsrc-git' to AUR / publish (push) Waiting to run
Some checks are pending
Publish 'chsrc-git' to AUR / publish (push) Waiting to run
This commit is contained in:
parent
5d89f4f0e6
commit
1b8323816c
|
|
@ -22,9 +22,12 @@ jobs:
|
|||
- name: 检出代码
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: 检查编译器版本
|
||||
- name: 检查 Clang 版本
|
||||
run: |
|
||||
clang --version
|
||||
|
||||
- name: 检查 GCC 版本
|
||||
run: |
|
||||
gcc --version
|
||||
|
||||
- name: 为 arm64 (AArch64) 构建
|
||||
|
|
@ -52,9 +55,12 @@ jobs:
|
|||
- name: 检出代码
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: 检查编译器版本
|
||||
- name: 检查 Clang 版本
|
||||
run: |
|
||||
clang --version
|
||||
|
||||
- name: 检查 GCC 版本
|
||||
run: |
|
||||
gcc --version
|
||||
|
||||
- name: 为 x64 构建
|
||||
|
|
|
|||
10
Makefile
10
Makefile
|
|
@ -100,15 +100,9 @@ ifeq ($(MAKECMDGOALS), build-in-ci-release-mode)
|
|||
CFLAGS += $(CFLAGS_static)
|
||||
endif
|
||||
|
||||
# GitHub Actions 上的 macOS 中的 LLVM 太老了
|
||||
ifeq ($(On-macOS), 1)
|
||||
ifeq ($(CC), clang)
|
||||
CFLAGS += -fraw-string-literals
|
||||
endif
|
||||
endif
|
||||
|
||||
# 在 Windows 上交叉编译 Android 时,用的是 clang
|
||||
ifdef CROSS_BUILD_WINDOWS_FOR_ANDROID
|
||||
CFLAGS += -fraw-string-literals
|
||||
CC = gcc
|
||||
endif
|
||||
|
||||
endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue