name linker result by target name only on Windows

avoids unnecessary relinking with varying output names of the same build
This commit is contained in:
dzaima 2023-10-31 03:15:32 +02:00
parent d911697242
commit ae6763f5e3

View File

@ -742,7 +742,7 @@ cachedBin‿linkerCache ← {
objs MakeCCInv po.CBQNc, , linkerCache, "versionInfo", srcFile,
}
res MakeLinkerInv po.Linker, linkerCache, {po.emcc? "BQN.js"; •file.Name po.output}, objs
res MakeLinkerInv po.Linker, linkerCache, {po.emcc? "BQN.js"; "windows"po.os? •file.Name po.output; "res"}, objs
res.dst linkerCache
}