From 389e12a78580362cae32d522ac021d74187d02b5 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Sat, 18 May 2024 14:17:03 -0400 Subject: [PATCH] Fixed read_directory_recursive not enforcing all nested subdirectories to be part of the same package when .ODIN_MONOLITHIC_PACKAGE on package directory --- src/parser.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/parser.cpp b/src/parser.cpp index 301961230..682eec3de 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -5433,7 +5433,7 @@ gb_internal void parser_add_foreign_file_to_process(Parser *p, AstPackage *pkg, thread_pool_add_task(foreign_file_worker_proc, wd); } -gb_internal ReadDirectoryError read_directory_recursive(String path, Array *fi, String const &FILE_EXT) { +gb_internal ReadDirectoryError read_directory_recursive(String path, Array *fi, String const &FILE_EXT, bool is_monolihtic = false) { Array sub_list = {}; ReadDirectoryError rd_err = read_directory(path, &sub_list); defer(array_free(&sub_list)); @@ -5446,14 +5446,15 @@ gb_internal ReadDirectoryError read_directory_recursive(String path, Array