diff options
| author | gingerBill <bill@gingerbill.org> | 2024-07-04 14:43:57 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-07-04 14:43:57 +0100 |
| commit | 1eb0bc1408735401a2ba6fdfbc2dd27726be5137 (patch) | |
| tree | f0b9ee2d55c368219dd862c2095b717547ffb499 /src | |
| parent | e9a54666e29553788275212545d8111fdac292a0 (diff) | |
Remove `*_test.odin`; always compile it for all targets
Diffstat (limited to 'src')
| -rw-r--r-- | src/parser.cpp | 7 | ||||
| -rw-r--r-- | src/parser.hpp | 1 |
2 files changed, 0 insertions, 8 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 37f9c35de..548e46cbe 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -6342,8 +6342,6 @@ gb_internal bool parse_file(Parser *p, AstFile *f) { } else if (lc == "+lazy") { if (build_context.ignore_lazy) { // Ignore - } else if (f->flags & AstFile_IsTest) { - // Ignore } else if (f->pkg->kind == Package_Init && build_context.command_kind == Command_doc) { // Ignore } else { @@ -6461,11 +6459,6 @@ gb_internal ParseFileError process_imported_file(Parser *p, ImportedFile importe if (build_context.command_kind == Command_test) { String name = file->fullpath; name = remove_extension_from_path(name); - - String test_suffix = str_lit("_test"); - if (string_ends_with(name, test_suffix) && name != test_suffix) { - file->flags |= AstFile_IsTest; - } } diff --git a/src/parser.hpp b/src/parser.hpp index 02f2af28d..521fd7a37 100644 --- a/src/parser.hpp +++ b/src/parser.hpp @@ -74,7 +74,6 @@ enum AstFileFlag : u32 { AstFile_IsPrivatePkg = 1<<0, AstFile_IsPrivateFile = 1<<1, - AstFile_IsTest = 1<<3, AstFile_IsLazy = 1<<4, AstFile_NoInstrumentation = 1<<5, |