[all-commits] [llvm/llvm-project] c77db8: [CMake] Fix runtimes cross-compilation when using ...

Vincent Lee via All-commits all-commits at lists.llvm.org
Wed Aug 3 11:24:31 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c77db81616805936fa8471241b3b0fce4af12cec
      https://github.com/llvm/llvm-project/commit/c77db81616805936fa8471241b3b0fce4af12cec
  Author: Vincent Lee <leevince at fb.com>
  Date:   2022-08-03 (Wed, 03 Aug 2022)

  Changed paths:
    M llvm/runtimes/CMakeLists.txt

  Log Message:
  -----------
  [CMake] Fix runtimes cross-compilation when using LLVM_USE_LINKER

This is motivated by https://reviews.llvm.org/D115852#3226050 where passing
`LLVM_USE_LINKER` in PASSTHROUGH_PREFIXES breaks cross-compilation
(e.g. targeting Windows on a Linux host). As suggested on that diff, implement
an override for it by allowing users to pass `RUNTIMES_${target}_LLVM_USE_LINKER`
to specify the linker for runtimes. Defaults to host linker if not specified.

Reviewed By: phosek, smeenai

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




More information about the All-commits mailing list