Skip to content

Commit

Permalink
Bump bundlex to 1.4, fix for cross-compile on OSX.
Browse files Browse the repository at this point in the history
  • Loading branch information
CJRChang committed Jan 16, 2024
1 parent d13f28c commit 974d401
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bundlex.exs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ defmodule Membrane.PortAudio.BundlexProject do
],
preprocessor: Unifex
]
] ++ os_specific(Bundlex.get_target())
] ++ os_specific(Bundlex.platform())
end

defp os_specific(%{os: "darwin" <> _rest}) do
defp os_specific(:macosx) do
[
osx_permissions: [
interface: :nif,
Expand Down
2 changes: 1 addition & 1 deletion lib/membrane_portaudio_plugin/osx_permissions.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if Bundlex.get_target().os |> String.starts_with?("darwin") do
if Bundlex.platform() == :macosx do
defmodule Membrane.PortAudio.OSXPermissions do
@moduledoc false

Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ defmodule Membrane.PortAudio.Mixfile do
{:membrane_common_c, "~> 0.16.0"},
{:bunch, "~> 1.5"},
{:membrane_raw_audio_format, "~> 0.12.0"},
{:bundlex, "~> 1.3"},
{:bundlex, "~> 1.4"},
{:membrane_precompiled_dependency_provider, "~> 0.1.0"},
# Testing
{:mockery, "~> 2.1", runtime: false},
Expand Down

0 comments on commit 974d401

Please sign in to comment.