From 584ec3de5f2bd3405f66b0cfcc7312ac09fd83cd Mon Sep 17 00:00:00 2001 From: Luke Street Date: Sun, 29 Sep 2024 13:58:15 -0600 Subject: [PATCH] Only write metadata.source_path if source file exists --- tools/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/project.py b/tools/project.py index d085c3b..55f9105 100644 --- a/tools/project.py +++ b/tools/project.py @@ -1243,6 +1243,7 @@ def generate_objdiff_config( src_exists = obj.src_path is not None and obj.src_path.exists() if src_exists: unit_config["base_path"] = obj.src_obj_path + unit_config["metadata"]["source_path"] = obj.src_path cflags = obj.options["cflags"] reverse_fn_order = False @@ -1300,7 +1301,6 @@ def generate_objdiff_config( { "complete": obj.completed, "reverse_fn_order": reverse_fn_order, - "source_path": obj.src_path, "progress_categories": progress_categories, } )