Skip to content

Commit ff381b7

Browse files
authored
Use DllImportSearchPath.AssemblyDirectory for loading jitinterface library (#119287)
1 parent 96ff164 commit ff381b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/tools/Common/InstructionSetHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public static InstructionSetSupport ConfigureInstructionSetSupport(string instru
105105
}
106106

107107
string jitInterfaceLibrary = "jitinterface_" + RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant();
108-
nint libHandle = NativeLibrary.Load(jitInterfaceLibrary, System.Reflection.Assembly.GetExecutingAssembly(), DllImportSearchPath.ApplicationDirectory);
108+
nint libHandle = NativeLibrary.Load(jitInterfaceLibrary, System.Reflection.Assembly.GetExecutingAssembly(), DllImportSearchPath.AssemblyDirectory);
109109
int cpuFeatures;
110110
unsafe
111111
{

0 commit comments

Comments
 (0)