From 6bae14c8360f84912a4b161171c92ad6486d604a Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Wed, 3 May 2023 19:27:44 -0700 Subject: [PATCH] Revert "[NativeAOT] Do not strip exported symbols from executables on Apple platforms (#85293)" (#85601) This reverts commit 32ecd85d057f4c49e7972ee44c314e1ad7392192. --- .../BuildIntegration/Microsoft.NETCore.Native.targets | 5 ++--- .../GenerateUnmanagedEntryPoints.csproj | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets index 305342bd98cf7..fbcadcc71b597 100644 --- a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets +++ b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets @@ -335,8 +335,7 @@ The .NET Foundation licenses this file to you under the MIT license. <_IgnoreLinkerWarnings>false <_IgnoreLinkerWarnings Condition="'$(_IsApplePlatform)' == 'true'">true - <_StripFlag Condition="'$(_IsApplePlatform)' == 'true' and '$(NativeLib)' == 'Shared'">-x - <_StripFlag Condition="'$(_IsApplePlatform)' == 'true' and '$(NativeLib)' != 'Shared' and '$(IlcExportUnmanagedEntrypoints)' == 'true'">-i -s $(ExportsFile) + -x @@ -363,7 +362,7 @@ The .NET Foundation licenses this file to you under the MIT license. + strip -no_code_signature_warning $(StripFlag) "$(NativeBinary)"" /> BuildAndRun true true + + + false