Skip to content

Commit

Permalink
Better log message on rpath error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpakkane authored and xclaesse committed Aug 8, 2020
1 parent 352f05f commit 91c5b37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mesonbuild/scripts/depfixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,8 @@ def fix_rpathtype_entry(self, rpath_dirs_to_remove, new_rpath, entrynum):
new_rpath = b':'.join(new_rpaths)

if len(old_rpath) < len(new_rpath):
sys.exit("New rpath must not be longer than the old one.")
msg = "New rpath must not be longer than the old one.\n Old: {}\n New: {}".format(old_rpath, new_rpath)
sys.exit(msg)
# The linker does read-only string deduplication. If there is a
# string that shares a suffix with the rpath, they might get
# dedupped. This means changing the rpath string might break something
Expand Down

0 comments on commit 91c5b37

Please sign in to comment.