[llvm] [llvm][test][CGPluginTest] Fix plugin path (PR #159914)

Raul Tambre via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 20 02:47:04 PDT 2025


https://github.com/tambry created https://github.com/llvm/llvm-project/pull/159914

During development I introduced the `%llvm_obj_root` substitution but later removed it as a better solution became apparent. Revert this to the original substitution while keeping the new path.

Fixes: 4e1c996674cc340f290b0a528e2038e76494d8d4

>From bd7319f350c24935f33bb42c7882d9622a7d6827 Mon Sep 17 00:00:00 2001
From: Raul Tambre <raul at tambre.ee>
Date: Sat, 20 Sep 2025 12:45:11 +0300
Subject: [PATCH] [llvm][test][CGPluginTest] Fix plugin path

During development I introduced the `%llvm_obj_root` substitution but later removed it as a better
solution became apparent. Revert this to the original substitution while keeping the new path.

Fixes: 4e1c996674cc340f290b0a528e2038e76494d8d4
---
 llvm/test/Other/codegen-plugin-loading.ll | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/test/Other/codegen-plugin-loading.ll b/llvm/test/Other/codegen-plugin-loading.ll
index a2a0814718e22..4913a32a639a6 100644
--- a/llvm/test/Other/codegen-plugin-loading.ll
+++ b/llvm/test/Other/codegen-plugin-loading.ll
@@ -1,4 +1,4 @@
-; RUN: llc -load %llvm_obj_root/unittests/CodeGen/CGPluginTest/CGTestPlugin%pluginext %s -o - | FileCheck %s
+; RUN: llc -load %llvmshlibdir/unittests/CodeGen/CGPluginTest/CGTestPlugin%pluginext %s -o - | FileCheck %s
 ; REQUIRES: native, system-linux, llvm-dylib
 
 ; CHECK: CodeGen Test Pass running on main



More information about the llvm-commits mailing list