From 2e43c57a039bc3dcab46c2a194cb10ca3165eb5b Mon Sep 17 00:00:00 2001 From: vylsaz <115213041+vylsaz@users.noreply.github.com> Date: Sun, 29 Oct 2023 10:00:32 -0700 Subject: [PATCH] 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 --- build/src/build.bqn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/src/build.bqn b/build/src/build.bqn index 7b87fb54..d9310be5 100755 --- a/build/src/build.bqn +++ b/build/src/build.bqn @@ -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 }