Another try to build for macOS.

This commit is contained in:
Revertron
2025-10-23 21:35:45 +02:00
parent 4169ede074
commit 914e8b6d67
2 changed files with 2 additions and 3 deletions
@@ -19,7 +19,6 @@ jobs:
include: include:
- os: windows-latest - os: windows-latest
- os: ubuntu-22.04 - os: ubuntu-22.04
- os: macos-latest
- os: macos-latest - os: macos-latest
target: aarch64-apple-darwin target: aarch64-apple-darwin
+2 -2
View File
@@ -1,9 +1,9 @@
extern crate winres; extern crate winres;
fn main() { fn main() {
// Set compiler flags for macOS ARM (Apple Silicon) // Suppress int-conversion warnings for macOS ARM (Apple Silicon) webview compatibility
if cfg!(target_os = "macos") && cfg!(target_arch = "aarch64") { if cfg!(target_os = "macos") && cfg!(target_arch = "aarch64") {
println!("cargo:rustc-env=CC=clang -Wno-int-conversion"); println!("cargo:rustc-env=CFLAGS=-Wno-int-conversion");
} }
if cfg!(target_os = "windows") { if cfg!(target_os = "windows") {