Fix bug where library source files were sometimes ignored.

This commit is contained in:
Christoffer Lerno
2023-08-09 21:34:58 +02:00
parent 6df6d2c084
commit 01a89e2145
5 changed files with 6 additions and 5 deletions

View File

@@ -153,6 +153,7 @@
- Added posix socket functions.
### Fixes
- Fix to bug where library source files were sometimes ignored.
- Types of arrays and vectors are consistently checked to be valid.
- Anonymous bitstructs check of duplicate member names fixed.
- Assignment to anonymous bitstruct members in structs.

View File

@@ -825,12 +825,12 @@ void compile()
static const char* c_suffix_list[3] = { ".c" };
active_target.csources = target_expand_source_names(active_target.csource_dirs, c_suffix_list, 1, false);
}
global_context.sources = active_target.sources;
global_context.main = NULL;
global_context.string_type = NULL;
asm_target.initialized = false;
target_setup(&active_target);
resolve_libraries();
global_context.sources = active_target.sources;
TokenType type = TOKEN_CONST_IDENT;
FOREACH_BEGIN(const char *feature_flag, active_target.feature_list)

View File

@@ -1585,8 +1585,8 @@ typedef struct
struct CompilationUnit_
{
Module *module;
File* file;
Decl** imports;
File *file;
Decl **imports;
Decl **types;
Decl **functions;
Decl **lambdas;

View File

@@ -554,7 +554,7 @@ void file_add_wildcard_files(const char ***files, const char *path, bool recursi
continue;
}
char *format = path_ends_with_slash ? "%s%s" : "%s/%s";
DEBUG_LOG("Added file");
DEBUG_LOG("Added file %s", ent->d_name);
vec_add(*files, str_printf(format, path, ent->d_name));
}
closedir(dir);

View File

@@ -1 +1 @@
#define COMPILER_VERSION "0.4.600"
#define COMPILER_VERSION "0.4.601"