From db8c1878a0df1eaafaef698469bb91ac4118f285 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 16 Oct 2025 08:30:43 +0200 Subject: [PATCH] fix dlopen using fs:path with mingw --- passes/cmds/plugin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passes/cmds/plugin.cc b/passes/cmds/plugin.cc index 4ccd8e5d4..dec53cf37 100644 --- a/passes/cmds/plugin.cc +++ b/passes/cmds/plugin.cc @@ -116,7 +116,7 @@ void load_plugin(std::string filename, std::vector aliases) if (potential_path.extension() != ".so") { potential_path = search_path / (orig_filename + ".so"); } - hdl = dlopen(potential_path.c_str(), RTLD_LAZY | RTLD_LOCAL); + hdl = dlopen(potential_path.string().c_str(), RTLD_LAZY | RTLD_LOCAL); if (hdl != nullptr) { break; }