From 39418ce5edda33528c5c76beacfd32e43118608b 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 341ee259ddd263..4ae3540f4248c5 100644 --- a/src/coreclr/tools/Common/InstructionSetHelpers.cs +++ b/src/coreclr/tools/Common/InstructionSetHelpers.cs @@ -105,7 +105,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 {