Skip to content

Commit

Permalink
fix System.Globalization.IOS.Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matouskozak committed Mar 14, 2024
1 parent 4f1fc7f commit 4d7a498
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/tasks/AppleAppBuilder/Xcode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,14 @@ public string GenerateCMake(
}
else if (forceAOT || !(preferDylibs && dylibExists))
{
// these libraries are pinvoked
// -force_load will be removed once we enable direct-pinvokes for AOT
toLink += $" \"-force_load {lib}\"{Environment.NewLine}";
// do not export symbols from ICU libraries
if (libName == "libicui18n" || libName == "libicudata" || libName == "libicuuc") {
toLink += $" \"-load_hidden {lib}\"{Environment.NewLine}";
} else {
// these libraries are pinvoked
// -force_load will be removed once we enable direct-pinvokes for AOT
toLink += $" \"-force_load {lib}\"{Environment.NewLine}";
}
}
}

Expand Down

0 comments on commit 4d7a498

Please sign in to comment.