[all-commits] [llvm/llvm-project] ea8f4b: [libc][CMake] Place archives in build/lib/<target-...

Aiden Grossman via All-commits all-commits at lists.llvm.org
Sat Jun 3 15:43:53 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ea8f4b98419750c8cc7c60ea43b570adf47b3f78
  Author: Aiden Grossman <agrossman154 at yahoo.com>
  Date:   2023-06-03 (Sat, 03 Jun 2023)

  Changed paths:
    M libc/CMakeLists.txt
    M libc/cmake/modules/LLVMLibCLibraryRules.cmake

  Log Message:
  [libc][CMake] Place archives in build/lib/<target-triple>

This patch moves the location of libllvmlibc.a within the build tree to
within ./lib/<target triple>. This more closely matches the behavior of
other runtime builds and allows for clang in the same build tree to
automatically be able to link against llvmlibc since this path is by
default included by the driver.

Also removes the LIBC_BINARY_DIR CMake flag since it isn't used anywhere
in the tree (based on a quick grep).

Reviewed By: phosek

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

More information about the All-commits mailing list