]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix temp-dir leakage in per-bfd-sharing.exp
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Wed, 2 Jun 2021 17:18:04 +0000 (19:18 +0200)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Wed, 2 Jun 2021 19:24:45 +0000 (21:24 +0200)
commit60be64b396c29a06a00bfef56758cee3a141bf22
tree58cc9cfe6cde57131da1a79685d526d2a20f86f7
parentea6197bf5fbef07a75309fd9876c798229f7abc2
Fix temp-dir leakage in per-bfd-sharing.exp

Whan using clang as compiler this compile step fails due to the
unknown option "-Wl,--build-id".  This leaks the already created
temp-dir.

Fixed by compiling first, and creating the temp-dir only when the
compile succeeded.

2021-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>

* gdb.dwarf2/per-bfd-sharing.exp: Fix temp-dir leakage.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/per-bfd-sharing.exp