Skip to content
Prev Previous commit
Next Next commit
wip
  • Loading branch information
rolfbjarne committed Mar 18, 2025
commit 0b38b15a7c0e7e27dbfdc4fc60e0c41ebad7e47c
3 changes: 3 additions & 0 deletions tests/assembly-preparer/PreserveBlockCodeHandlerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ namespace AssemblyPreparerTests;
public class PreserveBlockCodeHandlerTests {
[Test]
[TestCase (ApplePlatform.MacCatalyst)]
[TestCase (ApplePlatform.iOS)]
[TestCase (ApplePlatform.TVOS)]
[TestCase (ApplePlatform.MacOSX)]
public void First (ApplePlatform platform)
{
var code = @"
Expand Down
2 changes: 2 additions & 0 deletions tools/dotnet-linker/AppBundleRewriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@ public AppBundleRewriter (LinkerConfiguration configuration)
if (corlib_assembly is not null)
throw new InvalidOperationException ();
corlib_assembly = asm;
#if ASSEMBLY_PREPARER
} else if (asm.Name.Name == "System.Runtime") {
if (corlib_assembly is not null)
throw new InvalidOperationException ();
corlib_assembly = asm;
#endif
} else if (asm.Name.Name == configuration.PlatformAssembly) {
platform_assembly = asm;
}
Expand Down
Loading