mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Remove duplicates of .framework/.dynlib/.so in linker
This commit is contained in:
+10
-1
@@ -536,7 +536,16 @@ gb_internal i32 linker_stage(LinkerData *gen) {
|
|||||||
}
|
}
|
||||||
array_add(&gen->output_object_paths, obj_file);
|
array_add(&gen->output_object_paths, obj_file);
|
||||||
} else {
|
} else {
|
||||||
if (string_set_update(&min_libs_set, lib) && build_context.min_link_libs) {
|
bool short_circuit = false;
|
||||||
|
if (string_ends_with(lib, str_lit(".framework"))) {
|
||||||
|
short_circuit = true;
|
||||||
|
} else if (string_ends_with(lib, str_lit(".dylib"))) {
|
||||||
|
short_circuit = true;
|
||||||
|
} else if (string_ends_with(lib, str_lit(".so"))) {
|
||||||
|
short_circuit = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (string_set_update(&min_libs_set, lib) && (build_context.min_link_libs || short_circuit)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user