From 6280e72c03ae898efc76fa20706111f22c13b8a2 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 2 Jan 2023 22:36:13 +0200 Subject: [PATCH] Correctly fetch libmode when looking for dependencies of Binary --- source/lib/binary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lib/binary.cpp b/source/lib/binary.cpp index 9d73785..ff8d658 100644 --- a/source/lib/binary.cpp +++ b/source/lib/binary.cpp @@ -76,7 +76,7 @@ void Binary::find_dependencies(Target *tgt, vector &static_libs, vecto if(l.size()>10 && !l.compare(l.size()-10, 10, ".framework")) continue; - BuildInfo::LibraryMode libmode = component->get_build_info().get_libmode_for(l); + BuildInfo::LibraryMode libmode = binfo.get_libmode_for(l); Target *lib = builder.get_vfs().find_library(l, binfo.libpath, libmode); if(lib) { -- 2.43.0