diff options
| author | gingerBill <bill@gingerbill.org> | 2024-07-08 17:46:10 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-07-08 17:46:10 +0100 |
| commit | 48aef5016499291996f0710449a26f1f92078d51 (patch) | |
| tree | fbef589ab628c3b43e18f7e3be6ff0b1facd2dbc /src/check_builtin.cpp | |
| parent | fc9c995dc4664516e0f043e93176804fd034fa6b (diff) | |
Add #load cache files to `-export-dependencies:json`
Diffstat (limited to 'src/check_builtin.cpp')
| -rw-r--r-- | src/check_builtin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp index 5a8d9b782..eec01b497 100644 --- a/src/check_builtin.cpp +++ b/src/check_builtin.cpp @@ -1296,6 +1296,9 @@ gb_internal LoadDirectiveResult check_load_directive(CheckerContext *c, Operand gb_internal int file_cache_sort_cmp(void const *x, void const *y) { LoadFileCache const *a = *(LoadFileCache const **)(x); LoadFileCache const *b = *(LoadFileCache const **)(y); + if (a == b) { + return 0; + } return string_compare(a->path, b->path); } |