From e08dc1415f2ff78cfde214193c463cfe48ef3b9f Mon Sep 17 00:00:00 2001 From: Elinor Fung Date: Tue, 2 Sep 2025 14:08:21 -0700 Subject: [PATCH] Use DllImportSearchPath.AssemblyDirectory for loading jitinterface library --- src/coreclr/tools/Common/InstructionSetHelpers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/tools/Common/InstructionSetHelpers.cs b/src/coreclr/tools/Common/InstructionSetHelpers.cs index 0fb2dd0f5c8c81..4778feeadbc3b9 100644 --- a/src/coreclr/tools/Common/InstructionSetHelpers.cs +++ b/src/coreclr/tools/Common/InstructionSetHelpers.cs @@ -57,7 +57,7 @@ public static InstructionSetSupport ConfigureInstructionSetSupport(string instru } string jitInterfaceLibrary = "jitinterface_" + RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant(); - nint libHandle = NativeLibrary.Load(jitInterfaceLibrary, System.Reflection.Assembly.GetExecutingAssembly(), DllImportSearchPath.ApplicationDirectory); + nint libHandle = NativeLibrary.Load(jitInterfaceLibrary, System.Reflection.Assembly.GetExecutingAssembly(), DllImportSearchPath.AssemblyDirectory); int cpuFeatures; unsafe {