<PropertyGroup>
<_IgnoreLinkerWarnings>false</_IgnoreLinkerWarnings>
<_IgnoreLinkerWarnings Condition="'$(_IsApplePlatform)' == 'true'">true</_IgnoreLinkerWarnings>
- <StripFlag Condition="'$(_IsApplePlatform)' == 'true' and '$(NativeLib)' == 'Shared'">-x</StripFlag> <!-- keep global symbols in dylib -->
+ <_StripFlag Condition="'$(_IsApplePlatform)' == 'true' and '$(IlcExportUnmanagedEntrypoints)' == 'true'">-x</_StripFlag> <!-- keep only global symbols -->
</PropertyGroup>
<!-- write linker script for lld (13+) to retain the __modules section -->
<Exec Condition="'$(StripSymbols)' == 'true' and '$(_IsApplePlatform)' == 'true' and '$(NativeLib)' != 'Static'"
Command="
dsymutil $(DsymUtilOptions) "$(NativeBinary)" &&
- strip -no_code_signature_warning $(StripFlag) "$(NativeBinary)"" />
+ strip -no_code_signature_warning $(_StripFlag) "$(NativeBinary)"" />
</Target>
<Target Name="CreateLib"
<CLRTestKind>BuildAndRun</CLRTestKind>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<IlcExportUnmanagedEntrypoints>true</IlcExportUnmanagedEntrypoints>
-
- <!-- Stripping symbols causes problems for running the test on macOS -->
- <StripSymbols>false</StripSymbols>
</PropertyGroup>
<ItemGroup>