From 6374a2c01b0a6c3ec14ec28d05dafff47d75f70b Mon Sep 17 00:00:00 2001 From: "Magomed Kostoev (mkostoevr)" Date: Tue, 29 Jun 2021 17:49:34 +0000 Subject: [PATCH] [asmxygen] Only parse files if no `--clean` key provided git-svn-id: svn://kolibrios.org@8975 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/asmxygen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trunk/asmxygen.py b/kernel/trunk/asmxygen.py index f5786ed6ba..cb1ffa81f9 100644 --- a/kernel/trunk/asmxygen.py +++ b/kernel/trunk/asmxygen.py @@ -1893,7 +1893,7 @@ def handle_file(handled_files, asm_file_name, subdir = "."): print(f"Skipping {asm_file_name} (already newest)") should_get_declarations = False else: - print(f"Parsing {asm_file_name}") + print(f"Handling {asm_file_name}") # Read the source asm_file_contents = open(asm_file_name, "r", encoding="utf-8").read() # Find includes, fix their paths and handle em recoursively @@ -1907,7 +1907,7 @@ def handle_file(handled_files, asm_file_name, subdir = "."): new_subdir = full_path.rsplit('/', 1)[0] handle_file(handled_files, full_path, new_subdir) # Only collect declarations from the file if it wasn't parsed before - if should_get_declarations: + if should_get_declarations and not clean_generated_stuff: get_declarations(asm_file_contents, asm_file_name) kernel_files = []