mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-08 05:53:12 +00:00
Merge pull request #4616 from flga/master
make -export-dependencies emit valid json
This commit is contained in:
@@ -2120,7 +2120,7 @@ gb_internal void export_dependencies(Checker *c) {
|
||||
for_array(i, files) {
|
||||
AstFile *file = files[i];
|
||||
gb_fprintf(&f, "\t\t\"%.*s\"", LIT(file->fullpath));
|
||||
if (i+1 == files.count) {
|
||||
if (i+1 < files.count) {
|
||||
gb_fprintf(&f, ",");
|
||||
}
|
||||
gb_fprintf(&f, "\n");
|
||||
@@ -2133,7 +2133,7 @@ gb_internal void export_dependencies(Checker *c) {
|
||||
for_array(i, load_files) {
|
||||
LoadFileCache *cache = load_files[i];
|
||||
gb_fprintf(&f, "\t\t\"%.*s\"", LIT(cache->path));
|
||||
if (i+1 == load_files.count) {
|
||||
if (i+1 < load_files.count) {
|
||||
gb_fprintf(&f, ",");
|
||||
}
|
||||
gb_fprintf(&f, "\n");
|
||||
|
||||
Reference in New Issue
Block a user