Skip to content

Commit 7a874e0

Browse files
committed
move macos specific build args to build.rs
1 parent b374043 commit 7a874e0

File tree

4 files changed

+8
-17
lines changed

4 files changed

+8
-17
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,8 @@ jobs:
5555
rustflags: ""
5656

5757
- name: build ${{ matrix.config.name }}
58-
if: ${{ !contains(matrix.config.os, 'macos') }}
5958
run: cargo build --release
6059

61-
- name: build ${{ matrix.config.name }}
62-
if: ${{ contains(matrix.config.os, 'macos') }}
63-
run: MACOSX_DEPLOYMENT_TARGET="13" cargo build --release
64-
6560
- name: prepare ${{ matrix.config.name }}
6661
run: |
6762
# rename builds to be unique

crates/bridge/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::{
44
};
55

66
use anyhow::{Context, Result};
7-
use clap::{Parser, Subcommand, command};
7+
use clap::{Parser, Subcommand};
88
use defold_nvim_core::{
99
editor,
1010
focus::{focus_game, focus_neovim},

crates/sidecar/.cargo/config.toml

Lines changed: 0 additions & 11 deletions
This file was deleted.

crates/sidecar/build.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
fn main() {
2+
let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap();
3+
if target_os == "macos" {
4+
println!("cargo:rustc-link-arg=-undefined");
5+
println!("cargo:rustc-link-arg=dynamic_lookup");
6+
}
7+
}

0 commit comments

Comments
 (0)