Skip to content

Commit 1c5e3e5

Browse files
committed
Return error code on build failure
1 parent 65ed7ce commit 1c5e3e5

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

code/target_builder.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,5 +1090,12 @@ Status_Code build_project (Memory_Arena *arena, const Project *project, const Ar
10901090

10911091
flush_registry(&registry);
10921092

1093+
for (const auto tracker: trackers) {
1094+
if ((tracker->compile_status.value != Target_Compile_Status::Success) ||
1095+
(tracker->link_status.value != Target_Link_Status::Success)) {
1096+
return { Build_Error, "Couldn't build one or more targets" };
1097+
}
1098+
}
1099+
10931100
return Success;
10941101
}

0 commit comments

Comments
 (0)