]> xenbits.xensource.com Git - people/aperard/qemu-dm.git/commit
Fix objdump output parser in "nsis.py"
authorArthur Sengileyev <arthur.sengileyev@gmail.com>
Sat, 12 Apr 2025 18:08:30 +0000 (21:08 +0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 13 Apr 2025 10:45:41 +0000 (13:45 +0300)
commitb0b5af62ef9eaf25246cdd433a4eb69361298ee4
treef068180a588aa76bfc27eccc827dff26c7563277
parent22e6d702946c82c6d19326b81430c83ed9ee16a9
Fix objdump output parser in "nsis.py"

In msys2 distribution objdump from gcc is using single tab character
prefix, but objdump from clang is using 4 white space characters instead.
The script will not identify any dll dependencies for a QEMU build
generated with clang. This in turn will fail the build, because there
will be no files inside dlldir and no setup file will be created.
Instead of checking for whitespace in prefix use lstrip to accommodate
for differences in outputs.

Signed-off-by: Arthur Sengileyev <arthur.sengileyev@gmail.com>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
scripts/nsis.py