aboutsummaryrefslogtreecommitdiff
path: root/src/check_builtin.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-10-30 14:12:57 +0000
committergingerBill <bill@gingerbill.org>2024-10-30 14:12:57 +0000
commit8a00d85cea02f38164b18d9a7e3e7d710c7a6c40 (patch)
tree67c7f058ddf65e64189d4a76add9d6ad685b366d /src/check_builtin.cpp
parent2392300ffbc86b09fde2a4d170b8c38f8ad0d382 (diff)
parentf469bbb0049f618d09dd1dd962389c8306db6bbc (diff)
Merge branch 'master' of https://github.com/odin-lang/Odin
Diffstat (limited to 'src/check_builtin.cpp')
-rw-r--r--src/check_builtin.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp
index 09e558500..42b9e2180 100644
--- a/src/check_builtin.cpp
+++ b/src/check_builtin.cpp
@@ -1533,6 +1533,10 @@ gb_internal LoadDirectiveResult check_load_directory_directive(CheckerContext *c
for (FileInfo fi : list) {
LoadFileCache *cache = nullptr;
+ if (fi.is_dir) {
+ continue;
+ }
+
if (cache_load_file_directive(c, call, fi.fullpath, err_on_not_found, &cache, LoadFileTier_Contents, /*use_mutex*/false)) {
array_add(&file_caches, cache);
} else {