[libc-commits] [PATCH] D95205: [CMake][libc] Support cross-compiling libc-hdrgen

Petr Hosek via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Jan 21 22:59:21 PST 2021


phosek added a comment.

Note that there's one additional issue right now. The TableGen cross-compilation sub-invokes CMake which fails with:

  CMake Error at /src/clang-llvm/llvm-project/libc/CMakeLists.txt:49 (message):
  
  
          'clang' and 'clang-tools-extra' are required in LLVM_ENABLE_PROJECTS to
          lint llvm-libc. The linting step performs important checks to help prevent
          the introduction of subtle bugs, but it may increase build times.
  
  
  
          To disable linting set LLVM_LIBC_ENABLE_LINTING to OFF
          (pass -DLLVM_LIBC_ENABLE_LINTING=OFF to cmake).
  
  
  -- Configuring incomplete, errors occurred!

I think we'll need some way detect when we're cross-compiling TableGen and disable the linting support in that case.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D95205/new/

https://reviews.llvm.org/D95205



More information about the libc-commits mailing list