[llvm] [CAS][test] Fix the plugin CAS tests in mingw builds (PR #215247)
Martin Storsjö via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 10 04:14:47 PDT 2026
https://github.com/mstorsjo created https://github.com/llvm/llvm-project/pull/215247
In mingw build configurations, the plugin is named libCASTestPlugin.dll, while it resides in the bin directory.
>From 9487df04df2c99c1467fbc5c683c922b8e13cfd4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20Storsj=C3=B6?= <martin at martin.st>
Date: Mon, 10 Aug 2026 00:43:59 +0300
Subject: [PATCH] [CAS][test] Fix the plugin CAS tests in mingw builds
In mingw build configurations, the plugin is named libCASTestPlugin.dll,
while it resides in the bin directory.
---
llvm/unittests/CAS/CASTestConfig.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/llvm/unittests/CAS/CASTestConfig.cpp b/llvm/unittests/CAS/CASTestConfig.cpp
index 742da02ae7e13..a10feca8bb81c 100644
--- a/llvm/unittests/CAS/CASTestConfig.cpp
+++ b/llvm/unittests/CAS/CASTestConfig.cpp
@@ -35,6 +35,9 @@ std::string unittest::cas::getCASPluginPath() {
#ifndef _WIN32
std::string LibName = "libCASPluginTest";
sys::path::append(PathBuf, "lib", LibName + LLVM_PLUGIN_EXT);
+#elif defined(__MINGW32__)
+ std::string LibName = "libCASPluginTest";
+ sys::path::append(PathBuf, "bin", LibName + LLVM_PLUGIN_EXT);
#else
std::string LibName = "CASPluginTest";
sys::path::append(PathBuf, "bin", LibName + LLVM_PLUGIN_EXT);
More information about the llvm-commits
mailing list