]> git.ipfire.org Git - thirdparty/qemu.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>
Tue, 15 Apr 2025 09:23:44 +0000 (12:23 +0300)
commit7f637d2922e702673c672573a931941a5098388f
tree485fe907a5e71c6ed829af55aa533114c53b8ee8
parent138d48eca8c98237cadeb90318c83408bed53185
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>
(cherry picked from commit b0b5af62ef9eaf25246cdd433a4eb69361298ee4)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
scripts/nsis.py