From d1906fb563e13b0201037ed193adee9783ff0f8a Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Mon, 1 May 2023 10:04:48 -0700 Subject: [PATCH] Revert "[NativeAOT] Do not strip exported symbols from executables on Apple platforms (#85293)" 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 2ead5803e5ceac..6f0920d555c4ce 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