From 1928cd2b65c04ebe6fe528d4ebb581e46f1fed47 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Thu, 5 Jan 2023 14:49:19 -0500 Subject: [PATCH] [wasm] Fix dedup support. (#80223) The DedupAssembly argument to the MonoAOTCompiler task contains the original file name but its being compared against the file name which was copied into the aot-in directory. --- src/tasks/AotCompilerTask/MonoAOTCompiler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tasks/AotCompilerTask/MonoAOTCompiler.cs b/src/tasks/AotCompilerTask/MonoAOTCompiler.cs index 5b3e6b8ad62af..b744bbca3464b 100644 --- a/src/tasks/AotCompilerTask/MonoAOTCompiler.cs +++ b/src/tasks/AotCompilerTask/MonoAOTCompiler.cs @@ -574,7 +574,7 @@ private PrecompileArguments GetPrecompileArgumentsFor(ITaskItem assemblyItem, st var aotAssembly = new TaskItem(assembly); var aotArgs = new List(); var processArgs = new List(); - bool isDedup = assembly == DedupAssembly; + bool isDedup = Path.GetFileName(assembly) == Path.GetFileName(DedupAssembly); List proxyFiles = new(capacity: 5); var a = assemblyItem.GetMetadata("AotArguments");