[all-commits] [llvm/llvm-project] 82d3ba: [debugserver] Detect arch from LLVM_DEFAULT_TARGET...

Vedant Kumar via All-commits all-commits at lists.llvm.org
Mon Oct 28 15:34:58 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 82d3ba87d06f9e2abc6e27d8799587d433c56630
      https://github.com/llvm/llvm-project/commit/82d3ba87d06f9e2abc6e27d8799587d433c56630
  Author: Vedant Kumar <vsk at apple.com>
  Date:   2019-10-28 (Mon, 28 Oct 2019)

  Changed paths:
    M lldb/tools/debugserver/source/MacOSX/CMakeLists.txt

  Log Message:
  -----------
  [debugserver] Detect arch from LLVM_DEFAULT_TARGET_TRIPLE

The debugserver build needs to conditionally include files depending on the
target architecture.

Switch on the architecture specified by LLVM_DEFAULT_TARGET_TRIPLE, as
the llvm and swift build systems use this variable to identify the
target (the latter, indirectly, through LLVM_HOST_TRIPLE).

It would be possible to switch on CMAKE_OSX_ARCHITECTURES, but the swift
build does not provide it, preferring instead to pass arch-specific
CFLAGS etc explicitly. Switching on LLVM_HOST_TRIPLE is also an option,
but it breaks down when cross-compiling.

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




More information about the All-commits mailing list