mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Remove *_test.odin; always compile it for all targets
This commit is contained in:
@@ -6342,8 +6342,6 @@ gb_internal bool parse_file(Parser *p, AstFile *f) {
|
|||||||
} else if (lc == "+lazy") {
|
} else if (lc == "+lazy") {
|
||||||
if (build_context.ignore_lazy) {
|
if (build_context.ignore_lazy) {
|
||||||
// Ignore
|
// Ignore
|
||||||
} else if (f->flags & AstFile_IsTest) {
|
|
||||||
// Ignore
|
|
||||||
} else if (f->pkg->kind == Package_Init && build_context.command_kind == Command_doc) {
|
} else if (f->pkg->kind == Package_Init && build_context.command_kind == Command_doc) {
|
||||||
// Ignore
|
// Ignore
|
||||||
} else {
|
} else {
|
||||||
@@ -6461,11 +6459,6 @@ gb_internal ParseFileError process_imported_file(Parser *p, ImportedFile importe
|
|||||||
if (build_context.command_kind == Command_test) {
|
if (build_context.command_kind == Command_test) {
|
||||||
String name = file->fullpath;
|
String name = file->fullpath;
|
||||||
name = remove_extension_from_path(name);
|
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -74,7 +74,6 @@ enum AstFileFlag : u32 {
|
|||||||
AstFile_IsPrivatePkg = 1<<0,
|
AstFile_IsPrivatePkg = 1<<0,
|
||||||
AstFile_IsPrivateFile = 1<<1,
|
AstFile_IsPrivateFile = 1<<1,
|
||||||
|
|
||||||
AstFile_IsTest = 1<<3,
|
|
||||||
AstFile_IsLazy = 1<<4,
|
AstFile_IsLazy = 1<<4,
|
||||||
|
|
||||||
AstFile_NoInstrumentation = 1<<5,
|
AstFile_NoInstrumentation = 1<<5,
|
||||||
|
|||||||
Reference in New Issue
Block a user