[all-commits] [llvm/llvm-project] e8bff9: Fix lld standalone build

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Feb 7 09:20:16 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e8bff9ae54a55b4dbfeb6ba55f723abbd81bf494
  Author: Mariusz Ceier <mceier+llvm at gmail.com>
  Date:   2022-02-07 (Mon, 07 Feb 2022)

  Changed paths:
    M lld/ELF/OutputSections.cpp
    M llvm/include/llvm/Config/config.h.cmake
    M llvm/include/llvm/Config/llvm-config.h.cmake

  Log Message:
  Fix lld standalone build

lld/ELF/OutputSections.cpp includes llvm/Config/config.h for
LLVM_ENABLE_ZLIB definition, but llvm/Config/config.h doesn't exist in
standalone build.

To fix this, this patch moves LLVM_ENABLE_ZLIB from config.h to
llvm-config.h and updates OutputSections.cpp to include llvm-config.h
instead of config.h

Reviewed By: MaskRay, mgorny

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

More information about the All-commits mailing list