[all-commits] [llvm/llvm-project] 3fbb03: Adding an option to Skip LLVM and Clang exports (#...

Haowei via All-commits all-commits at lists.llvm.org
Fri Jul 17 16:09:04 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3fbb037d03e7ff1ef1cd9156363e895af7caaf98
      https://github.com/llvm/llvm-project/commit/3fbb037d03e7ff1ef1cd9156363e895af7caaf98
  Author: Haowei <haowei at google.com>
  Date:   2026-07-17 (Fri, 17 Jul 2026)

  Changed paths:
    M clang/cmake/modules/ClangConfig.cmake.in
    M compiler-rt/cmake/Modules/CompilerRTUtils.cmake
    M llvm/cmake/modules/LLVMConfig.cmake.in
    M runtimes/CMakeLists.txt

  Log Message:
  -----------
  Adding an option to Skip LLVM and Clang exports (#209922)

Under CMake 4+, calling add_library(... SHARED IMPORTED) on a
target platform that lacks dynamic linking support triggers a fatal
error. This becomes an issue when building LLVM and runtimes for
baremetal targets like armv6m-none-eabi. This patch
adds the option "LLVM_OMIT_EXPORTS_FROM_CONFIG" in LLVM.
When used in sub builds like LLVM runtimes, it makes CMake to skip
including the LLVM and Clang exports. This mitigates the CMake 4
errors on baremetal runtimes.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list