From 5ea53e5a59f08b08619928c39ed1efc5395160dd Mon Sep 17 00:00:00 2001 From: Robin Avery Date: Thu, 14 Mar 2024 19:18:01 -0400 Subject: [PATCH] Fix misplaced `None` assignment in project.py (#20) --- tools/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/project.py b/tools/project.py index 841212b..bf61890 100644 --- a/tools/project.py +++ b/tools/project.py @@ -688,6 +688,7 @@ def generate_build_ninja( ).with_suffix(".s") link_built_obj = obj.completed + built_obj_path: Optional[Path] = None if unit_src_path.exists(): if unit_src_path.suffix in (".c", ".cp", ".cpp"): # Add MWCC & host build rules @@ -703,7 +704,6 @@ def generate_build_ninja( link_built_obj = False # Assembly overrides - built_obj_path: Optional[Path] = None if unit_asm_path is not None and unit_asm_path.exists(): link_built_obj = True built_obj_path = asm_build(obj, options, lib_name, unit_asm_path)