From 55535ed4c3aa224481b553784bef58c4efc14781 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Fri, 5 Apr 2024 14:04:30 -0500 Subject: [PATCH] Change change export name mangling to match expectations (#100652) --- src/tasks/WasmAppBuilder/PInvokeTableGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tasks/WasmAppBuilder/PInvokeTableGenerator.cs b/src/tasks/WasmAppBuilder/PInvokeTableGenerator.cs index 402325b1275ff..4a29b47666e94 100644 --- a/src/tasks/WasmAppBuilder/PInvokeTableGenerator.cs +++ b/src/tasks/WasmAppBuilder/PInvokeTableGenerator.cs @@ -179,7 +179,7 @@ private string CEntryPoint(PInvoke pinvoke) if (pinvoke.WasmLinkage) { // We mangle the name to avoid collisions with symbols in other modules - return _fixupSymbolName($"{pinvoke.Module}_{pinvoke.EntryPoint}"); + return _fixupSymbolName($"{pinvoke.Module}#{pinvoke.EntryPoint}"); } return _fixupSymbolName(pinvoke.EntryPoint); }