use the same file name as output for cached file

For Windows, the original file name is written into the binary, which can cause problems when linking
This commit is contained in:
vylsaz 2023-10-29 10:00:32 -07:00 committed by GitHub
parent a4befbd8bf
commit 2e43c57a03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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