From 42b86dcf78960dce4815e902e21247dee2cde575 Mon Sep 17 00:00:00 2001 From: Benedikt Reinartz Date: Tue, 1 Oct 2024 13:41:06 +0200 Subject: [PATCH] Revert "Recompile if the NIF library is changed/deleted (#624)" This reverts commit 7fef3c52873e31e863e966b4677cc1f58c57d699. --- rustler_mix/lib/rustler.ex | 7 ------- rustler_mix/lib/rustler/compiler.ex | 2 -- 2 files changed, 9 deletions(-) diff --git a/rustler_mix/lib/rustler.ex b/rustler_mix/lib/rustler.ex index 73fd6cdf..487d8b4d 100644 --- a/rustler_mix/lib/rustler.ex +++ b/rustler_mix/lib/rustler.ex @@ -104,13 +104,6 @@ defmodule Rustler do end if config.lib do - {otp_app, path} = config.load_from - - @external_resource Application.app_dir( - otp_app, - "#{path}.#{Rustler.Compiler.get_lib_suffix()}" - ) - @load_from config.load_from @load_data config.load_data @load_data_fun config.load_data_fun diff --git a/rustler_mix/lib/rustler/compiler.ex b/rustler_mix/lib/rustler/compiler.ex index 5a48b729..56982544 100644 --- a/rustler_mix/lib/rustler/compiler.ex +++ b/rustler_mix/lib/rustler/compiler.ex @@ -136,8 +136,6 @@ defmodule Rustler.Compiler do end end - def get_lib_suffix(), do: get_suffix(nil, :lib) - defp get_suffix(target, :lib) do case get_target_os_type(target) do {:win32, _} -> "dll"