[all-commits] [llvm/llvm-project] eb6f9f: [lld-macho] Fix trailing slash in oso_prefix

Keith Smiley via All-commits all-commits at lists.llvm.org
Fri Nov 12 11:39:45 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eb6f9f3123e6043d559fdfd921714626ff542cee
      https://github.com/llvm/llvm-project/commit/eb6f9f3123e6043d559fdfd921714626ff542cee
  Author: Keith Smiley <keithbsmiley at gmail.com>
  Date:   2021-11-12 (Fri, 12 Nov 2021)

  Changed paths:
    M lld/MachO/Driver.cpp
    M lld/test/MachO/stabs.s

  Log Message:
  -----------
  [lld-macho] Fix trailing slash in oso_prefix

Previously if you passed `-oso_prefix path/to/foo/` with a trailing
slash at the end, using `real_path` would remove that slash, but that
slash is necessary to make sure OSO prefix paths end up as valid
relative paths instead of starting with `/`.

Differential Revision: https://reviews.llvm.org/D113541




More information about the All-commits mailing list