mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 04:38:16 +00:00
Make the link order of foreign imports deterministic
This commit is contained in:
@@ -135,7 +135,6 @@ struct lbModule {
|
||||
u32 nested_type_name_guid;
|
||||
|
||||
Array<lbProcedure *> procedures_to_generate;
|
||||
Array<String> foreign_library_paths;
|
||||
|
||||
lbProcedure *curr_procedure;
|
||||
|
||||
@@ -162,6 +161,10 @@ struct lbGenerator {
|
||||
|
||||
PtrMap<Ast *, lbProcedure *> anonymous_proc_lits;
|
||||
|
||||
BlockingMutex foreign_mutex;
|
||||
PtrSet<Entity *> foreign_libraries_set;
|
||||
Array<Entity *> foreign_libraries;
|
||||
|
||||
std::atomic<u32> global_array_index;
|
||||
std::atomic<u32> global_generated_index;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user