[all-commits] [llvm/llvm-project] ba4bd3: [CMake] respect LLVMConfig.cmake's LLVM_DEFINITION...

jeremyd2019 via All-commits all-commits at lists.llvm.org
Wed May 21 22:14:35 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ba4bd3f46e97b5637b16a0fa74b064fb3e6db8ff
      https://github.com/llvm/llvm-project/commit/ba4bd3f46e97b5637b16a0fa74b064fb3e6db8ff
  Author: jeremyd2019 <github at jdrake.com>
  Date:   2025-05-22 (Thu, 22 May 2025)

  Changed paths:
    M bolt/CMakeLists.txt
    M clang/CMakeLists.txt
    M flang/CMakeLists.txt
    M lld/CMakeLists.txt
    M lldb/cmake/modules/LLDBStandalone.cmake
    M mlir/CMakeLists.txt
    M polly/CMakeLists.txt

  Log Message:
  -----------
  [CMake] respect LLVMConfig.cmake's LLVM_DEFINITIONS in standalone builds (#138587)

In #138329, _GNU_SOURCE was added for Cygwin, but when building Clang
standalone against an installed LLVM this definition was not picked up,
resulting in undefined strnlen. Follow the documentation in
https://llvm.org/docs/CMake.html#embedding-llvm-in-your-project and add
the LLVM_DEFINITIONS in standalone projects' cmakes.



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