From 914e8b6d67836cdc7ebdccd8b6edc1f775089386 Mon Sep 17 00:00:00 2001 From: Revertron Date: Thu, 23 Oct 2025 21:35:45 +0200 Subject: [PATCH] Another try to build for macOS. --- .github/workflows/rust_build_and_test.yml | 1 - build.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust_build_and_test.yml b/.github/workflows/rust_build_and_test.yml index 7bb56c4..929eac2 100644 --- a/.github/workflows/rust_build_and_test.yml +++ b/.github/workflows/rust_build_and_test.yml @@ -19,7 +19,6 @@ jobs: include: - os: windows-latest - os: ubuntu-22.04 - - os: macos-latest - os: macos-latest target: aarch64-apple-darwin diff --git a/build.rs b/build.rs index e172889..da9e664 100644 --- a/build.rs +++ b/build.rs @@ -1,9 +1,9 @@ extern crate winres; 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") { - println!("cargo:rustc-env=CC=clang -Wno-int-conversion"); + println!("cargo:rustc-env=CFLAGS=-Wno-int-conversion"); } if cfg!(target_os = "windows") {