[all-commits] [llvm/llvm-project] 66799b: [AIX][clang][driver] Restrict /usr/lib to internal...

David Tenty via All-commits all-commits at lists.llvm.org
Wed Mar 3 07:48:57 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 66799bf0e281099f05b781e5279a7025b1e365cf
      https://github.com/llvm/llvm-project/commit/66799bf0e281099f05b781e5279a7025b1e365cf
  Author: David Tenty <daltenty at ibm.com>
  Date:   2021-03-03 (Wed, 03 Mar 2021)

  Changed paths:
    M clang/lib/Driver/ToolChains/AIX.cpp
    M clang/test/Driver/aix-ld.c

  Log Message:
  -----------
  [AIX][clang][driver] Restrict /usr/lib to internal library search paths

Adding it to the general filepaths results in it being added to the
linker arguments. The AIX linker always looks in this path anyway
and adds it as a default library path component. Adding this duplicate
explicitly results in duplicate entries in path in the loader section
of executables and messes up tools like CMake that parse the default
library flags.

Reviewed By: ZarkoCA

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




More information about the All-commits mailing list