From bae88d8085390856899eae8881526eb794b9a5b5 Mon Sep 17 00:00:00 2001 From: TermiNexus Date: Wed, 30 Sep 2026 00:20:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20linker=20=E5=92=8C=20compi?= =?UTF-8?q?ler=20=E5=90=8E=E7=AB=AF=E6=8C=87=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project.vpj | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/project.vpj b/project.vpj index 0f08f1a..9b3e4b4 100644 --- a/project.vpj +++ b/project.vpj @@ -5,11 +5,22 @@ "build_dir": "./.tpv_build", "compiler": { "cmd": "llc", - "flags": ["-filetype=obj", "-relocation-model=pic"] + "flags": [ + "-filetype=obj", + "-relocation-model=pic" + ] }, "linker": { - "cmd": "clang++", - "flags": ["-lmsvcrt", "-lucrt", "-lpthread", "-lmingwex", "-lkernel32", "-Wl,--allow-multiple-definition"], + "cmd": "D:/msys64/mingw64/bin/clang++.exe", + "flags": [ + "-fuse-ld=lld", + "-lmsvcrt", + "-lucrt", + "-lpthread", + "-lmingwex", + "-lkernel32", + "-Wl,--allow-multiple-definition" + ], "output": "app.exe" }, "includes": [ @@ -24,4 +35,4 @@ "target": "llvm", "strict_mode": true } -} +} \ No newline at end of file