Skip to content

Commit

Permalink
[wasm] Fix dedup support. (#80223)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vargaz authored Jan 5, 2023
1 parent 5a10aa6 commit 1928cd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tasks/AotCompilerTask/MonoAOTCompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ private PrecompileArguments GetPrecompileArgumentsFor(ITaskItem assemblyItem, st
var aotAssembly = new TaskItem(assembly);
var aotArgs = new List<string>();
var processArgs = new List<string>();
bool isDedup = assembly == DedupAssembly;
bool isDedup = Path.GetFileName(assembly) == Path.GetFileName(DedupAssembly);
List<ProxyFile> proxyFiles = new(capacity: 5);

var a = assemblyItem.GetMetadata("AotArguments");
Expand Down

0 comments on commit 1928cd2

Please sign in to comment.