From 0e48b9179fde8e610f398cd627e29ddcba1ed0b5 Mon Sep 17 00:00:00 2001 From: JopStro Date: Sun, 5 May 2024 19:28:35 +0100 Subject: [PATCH] Fix mac build --- .github/workflows/rust.yml | 3 --- Cargo.toml | 12 ++++++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 2e9b756..9608770 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -28,9 +28,6 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: leafo/gh-actions-lua@v10 - with: - luaVersion: "luajit-2.0.5" - name: Build run: cargo build --verbose --release env: diff --git a/Cargo.toml b/Cargo.toml index b2e5656..dabfeee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,3 +11,15 @@ crate-type = ["cdylib"] serde_json = "=1.0.116" serde_json5 = "0.1.0" mlua = { version = "0.9.7", features = ["luajit", "module", "serialize"] } + +[target.x86_64-apple-darwin] +rustflags = [ + "-C", "link-arg=-undefined", + "-C", "link-arg=dynamic_lookup", +] + +[target.aarch64-apple-darwin] +rustflags = [ + "-C", "link-arg=-undefined", + "-C", "link-arg=dynamic_lookup", +]