Skip to content

Commit 1928cd2

Browse files
authored
[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.
1 parent 5a10aa6 commit 1928cd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tasks/AotCompilerTask/MonoAOTCompiler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ private PrecompileArguments GetPrecompileArgumentsFor(ITaskItem assemblyItem, st
574574
var aotAssembly = new TaskItem(assembly);
575575
var aotArgs = new List<string>();
576576
var processArgs = new List<string>();
577-
bool isDedup = assembly == DedupAssembly;
577+
bool isDedup = Path.GetFileName(assembly) == Path.GetFileName(DedupAssembly);
578578
List<ProxyFile> proxyFiles = new(capacity: 5);
579579

580580
var a = assemblyItem.GetMetadata("AotArguments");

0 commit comments

Comments
 (0)