[all-commits] [llvm/llvm-project] 7eb5cb: [libc] Fix allocator inclusion

michaelrj-google via All-commits all-commits at lists.llvm.org
Fri Feb 11 14:58:34 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7eb5cb7f9e35bb1545804ce989baccd46748a374
  Author: Michael Jones <michaelrj at google.com>
  Date:   2022-02-11 (Fri, 11 Feb 2022)

  Changed paths:
    M libc/config/linux/aarch64/entrypoints.txt
    M libc/config/linux/x86_64/entrypoints.txt
    M libc/src/__support/CPP/CMakeLists.txt
    M libc/src/stdlib/CMakeLists.txt
    M libc/test/utils/CPP/CMakeLists.txt

  Log Message:
  [libc] Fix allocator inclusion

Previously, allocator functions were only available if they were included
from scudo or by using the system libc headers (i.e. by turning off the
full build). This patch changes the logic to include the prototypes for
the allocator functitons in all cases, which allows the linker to link
in the system's allocator.

Reviewed By: sivachandra, abrachet

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

More information about the All-commits mailing list