trim obj paths pulled in from libs

This commit is contained in:
Nikita Smith
2025-05-15 17:18:06 -07:00
committed by Ryan Fleury
parent f2c7e69844
commit ac261b3eed
+1 -1
View File
@@ -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);
}