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); }