Skip to content

Commit 81e8e84

Browse files
Use DllImportSearchPath.AssemblyDirectory for loading jitinterface library (#119333)
Co-authored-by: Elinor Fung <elfung@microsoft.com>
1 parent 13276b6 commit 81e8e84

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
@@ -57,7 +57,7 @@ public static InstructionSetSupport ConfigureInstructionSetSupport(string instru
5757
}
5858

5959
string jitInterfaceLibrary = "jitinterface_" + RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant();
60-
nint libHandle = NativeLibrary.Load(jitInterfaceLibrary, System.Reflection.Assembly.GetExecutingAssembly(), DllImportSearchPath.ApplicationDirectory);
60+
nint libHandle = NativeLibrary.Load(jitInterfaceLibrary, System.Reflection.Assembly.GetExecutingAssembly(), DllImportSearchPath.AssemblyDirectory);
6161
int cpuFeatures;
6262
unsafe
6363
{

0 commit comments

Comments
 (0)