From c100e85aa3bf8cd55fbada76d52d5bfa69ade768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20Sowi=C5=84ski?= Date: Thu, 18 Jul 2024 09:01:05 +0200 Subject: [PATCH] Change test lib name so it doesn't clash with managed DLL on Windows --- src/tests/JIT/Directed/PrimitiveABI/CMakeLists.txt | 6 +++--- src/tests/JIT/Directed/PrimitiveABI/PrimitiveABI.cs | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/tests/JIT/Directed/PrimitiveABI/CMakeLists.txt b/src/tests/JIT/Directed/PrimitiveABI/CMakeLists.txt index d965d43e3eddb..20cb7991ed09a 100644 --- a/src/tests/JIT/Directed/PrimitiveABI/CMakeLists.txt +++ b/src/tests/JIT/Directed/PrimitiveABI/CMakeLists.txt @@ -1,4 +1,4 @@ -project (PrimitiveABI) +project (PrimitiveABINative) include_directories(${INC_PLATFORM_DIR}) if(CLR_CMAKE_HOST_WIN32) @@ -7,6 +7,6 @@ else() set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -Oz") endif() -add_library (PrimitiveABI SHARED PrimitiveABI.c) +add_library (PrimitiveABINative SHARED PrimitiveABI.c) -install (TARGETS PrimitiveABI DESTINATION bin) +install (TARGETS PrimitiveABINative DESTINATION bin) diff --git a/src/tests/JIT/Directed/PrimitiveABI/PrimitiveABI.cs b/src/tests/JIT/Directed/PrimitiveABI/PrimitiveABI.cs index a45048e7c381e..8bcc34996d744 100644 --- a/src/tests/JIT/Directed/PrimitiveABI/PrimitiveABI.cs +++ b/src/tests/JIT/Directed/PrimitiveABI/PrimitiveABI.cs @@ -9,7 +9,7 @@ public static class Program { #region ExtendedUint_RiscVTests - [DllImport("PrimitiveABI")] + [DllImport("PrimitiveABINative")] public static extern long Echo_ExtendedUint_RiscV(int a0, uint a1); [MethodImpl(MethodImplOptions.NoInlining)] @@ -41,7 +41,7 @@ public static void Test_ExtendedUint_ByReflection_RiscV() Assert.Equal(ret, native); } - [DllImport("PrimitiveABI")] + [DllImport("PrimitiveABINative")] public static extern long Echo_ExtendedUint_OnStack_RiscV( int a0, int a1, int a2, int a3, int a4, int a5, int a6, int a7, uint stack0); @@ -77,7 +77,7 @@ public static void Test_ExtendedUint_OnStack_ByReflection_RiscV() #endregion #region Float_RiscVTests - [DllImport("PrimitiveABI")] + [DllImport("PrimitiveABINative")] public static extern double Echo_Float_RiscV(float fa0, float fa1); [MethodImpl(MethodImplOptions.NoInlining)] @@ -109,7 +109,7 @@ public static void Test_Float_ByReflection_RiscV() Assert.Equal(ret, native); } - [DllImport("PrimitiveABI")] + [DllImport("PrimitiveABINative")] public static extern double Echo_Float_InIntegerReg_RiscV( float fa0, float fa1, float fa2, float fa3, float fa4, float fa5, float fa6, float fa7, float a0); @@ -143,7 +143,7 @@ public static void Test_Float_InIntegerReg_ByReflection_RiscV() Assert.Equal(ret, native); } - [DllImport("PrimitiveABI")] + [DllImport("PrimitiveABINative")] public static extern double Echo_Float_OnStack_RiscV( float fa0, float fa1, float fa2, float fa3, float fa4, float fa5, float fa6, float fa7, int a0, int a1, int a2, int a3, int a4, int a5, int a6, int a7, float stack0);