Skip to content

Commit

Permalink
Revert more singlefilehost changes
Browse files Browse the repository at this point in the history
  • Loading branch information
filipnavara committed Nov 30, 2024
1 parent cb4f28d commit a746372
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/native/corehost/apphost/static/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ else()
System.IO.Compression.Native-Static
System.Net.Security.Native-Static
System.Native-Static
System.Security.Cryptography.Native.OpenSsl-Static

coreclrpal_dac
corguids
Expand All @@ -175,10 +176,6 @@ else()
nativeresourcestring
)

if(NOT CLR_CMAKE_TARGET_MACCATALYST AND NOT CLR_CMAKE_TARGET_IOS AND NOT CLR_CMAKE_TARGET_TVOS AND NOT CLR_CMAKE_HOST_ANDROID)
LIST(APPEND NATIVE_LIBS System.Security.Cryptography.Native.OpenSsl-Static)
endif()

# additional requirements for System.IO.Compression.Native
include(${CLR_SRC_NATIVE_DIR}/libs/System.IO.Compression.Native/extra_libs.cmake)
append_extra_compression_libs(NATIVE_LIBS)
Expand All @@ -200,6 +197,7 @@ else()
endif()

set(RUNTIMEINFO_LIB runtimeinfo)

endif()

if(CLR_CMAKE_TARGET_APPLE)
Expand All @@ -217,11 +215,13 @@ endif()
#
if(CLR_CMAKE_TARGET_APPLE)
find_library(COREFOUNDATION CoreFoundation)
find_library(CORESERVICES CoreServices)
find_library(SECURITY Security)
find_library(SYSTEM System)

LIST(APPEND NATIVE_LIBS
${COREFOUNDATION}
${CORESERVICES}
${SECURITY}
${SYSTEM}
)
Expand Down
2 changes: 1 addition & 1 deletion src/native/corehost/hostmisc/pal.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
#if defined(TARGET_WINDOWS)
#define LIB_PREFIX ""
#define LIB_FILE_EXT ".dll"
#elif defined(TARGET_APPLE)
#elif defined(TARGET_OSX)
#define LIB_PREFIX "lib"
#define LIB_FILE_EXT ".dylib"
#else
Expand Down
4 changes: 1 addition & 3 deletions src/native/corehost/hostpolicy/hostpolicy_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,10 @@ namespace
return SystemResolveDllImport(entry_point_name);
}

#if !defined(TARGET_APPLE) || defined(TARGET_OSX)
if (strcmp(library_name, LIB_NAME("System.Security.Cryptography.Native.OpenSsl")) == 0)
{
return CryptoResolveDllImport(entry_point_name);
}
#endif // !defined(TARGET_APPLE) || defined(TARGET_OSX)
#endif

if (strcmp(library_name, LIB_NAME("System.IO.Compression.Native")) == 0)
Expand All @@ -97,7 +95,7 @@ namespace
}
}

#if defined(TARGET_APPLE)
#if defined(TARGET_OSX)
if (strcmp(library_name, LIB_NAME("System.Security.Cryptography.Native.Apple")) == 0)
{
return CryptoAppleResolveDllImport(entry_point_name);
Expand Down

0 comments on commit a746372

Please sign in to comment.