From 12e1eafbb98cc2180d46386ceb34e3bb8f033f4d Mon Sep 17 00:00:00 2001 From: Carlos Rueda Date: Tue, 30 Jul 2024 11:58:38 -0700 Subject: [PATCH] adjs --- .github/workflows/release.yml | 2 +- build.rs | 8 +++----- justfile | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8f97a80..65fb293 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,7 +37,7 @@ jobs: - name: Build macos run: | - CC=gcc cargo build --verbose --release + CC=gcc-14 cargo build --verbose --release cd target/release/ zip "${{github.workspace}}/ecoz2rs-macos.zip" ecoz2 diff --git a/build.rs b/build.rs index d5053f5..6bc0fbe 100644 --- a/build.rs +++ b/build.rs @@ -59,16 +59,14 @@ fn main() { let mut build = cc::Build::new(); for f in flags { - build = build.flag(f).to_owned(); + build.flag(f); } for f in flags_if_supported { - build = build.flag(f).to_owned(); + build.flag(f); } - for f in headers { - build = build.include(f).to_owned(); - } + build.includes(headers); build.flag(&std::env::var("DEP_OPENMP_FLAG").unwrap()); diff --git a/justfile b/justfile index 218b6f4..7ddc0ba 100644 --- a/justfile +++ b/justfile @@ -50,7 +50,7 @@ clippy: cargo clippy --no-deps # Build release -release: +build: cargo build --release # Build release with RUSTFLAGS="-C target-cpu=native"