[all-commits] [llvm/llvm-project] 742446: [CMake][libc] Fix non-runtime build when other run...

Aiden Grossman via All-commits all-commits at lists.llvm.org
Sat May 20 15:34:06 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 742446a837ba7edc27d614a330cb3a74338d11ff
      https://github.com/llvm/llvm-project/commit/742446a837ba7edc27d614a330cb3a74338d11ff
  Author: Aiden Grossman <agrossman154 at yahoo.com>
  Date:   2023-05-20 (Sat, 20 May 2023)

  Changed paths:
    M libc/CMakeLists.txt

  Log Message:
  -----------
  [CMake][libc] Fix non-runtime build when other runtimes are enabled

Before this patch, when other runtimes were enabled by setting
LLVM_ENABLE_RUNTIMES and llvm libc was built as a project by setting
LLVM_ENABLE_PROJECTS, the llvm libc CMake system would delay
configuration until the runtime build which never started since libc
wasn't declared as one of the runtime builds. This patch fixes this
behavior by explicitly checking that libc is within LLVM_ENABLE_RUNTIMES
rather than just the variable being set at all.

Reviewed By: Intue

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




More information about the All-commits mailing list