From ac261b3eed2fcfa77915768b7a3ad20130c448fe Mon Sep 17 00:00:00 2001 From: Nikita Smith Date: Thu, 15 May 2025 17:18:06 -0700 Subject: [PATCH] trim obj paths pulled in from libs --- src/linker/lnk_error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linker/lnk_error.c b/src/linker/lnk_error.c index 7ff046f0..c2ee9ba7 100644 --- a/src/linker/lnk_error.c +++ b/src/linker/lnk_error.c @@ -74,7 +74,7 @@ lnk_error_with_loc_fv(LNK_ErrorCode code, String8 obj_path, String8 lib_path, ch String8 text = push_str8fv(scratch.arena, fmt, args); if (obj_path.size) { if (lib_path.size) { - lnk_error(code, "%S(%S): %S", lib_path, obj_path, text); + lnk_error(code, "%S(%S): %S", lib_path, str8_skip_last_slash(obj_path), text); } else { lnk_error(code, "%S: %S", obj_path, text); }