[asmxygen] Dump into file instead of stdout

git-svn-id: svn://kolibrios.org@9033 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Magomed Kostoev (mkostoevr) 2021-07-08 18:33:06 +00:00
parent 43ca471eaa
commit 51562c329d

View File

@ -2004,8 +2004,11 @@ if os.path.isfile('asmxygen.elements.pickle'):
handle_file(kernel_files, "./kernel.asm");
if dump_symbols:
stdout = sys.stdout
sys.stdout = open('asmxygen.dump.txt', 'w', encoding = 'utf-8')
for asm_element in elements:
asm_element.dump()
sys.stdout = stdout
if clean_generated_stuff:
kernel_files_set = set(kernel_files)