From 2cf2b1af0f0be6431c1e239d482056ef4d4ac17f Mon Sep 17 00:00:00 2001
From: Florian Franzmann <Florian.Franzmann@bandrate.org>
Date: Sun, 2 May 2021 13:24:21 +0200
Subject: [PATCH] Fix inclusion of libunwind from source directory

Ref: https://groups.google.com/g/llvm-dev/c/gIY5COm6V5E
Upstream-Status: Unknown [Should have been fixed by 12.0.1; as of
  2021-07-10 this has not been fixed.]
---
 tools/lld/MachO/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/lld/MachO/CMakeLists.txt b/tools/lld/MachO/CMakeLists.txt
index b76f37dcc6e6..69ca3fc6de67 100644
--- a/tools/lld/MachO/CMakeLists.txt
+++ b/tools/lld/MachO/CMakeLists.txt
@@ -2,7 +2,7 @@ set(LLVM_TARGET_DEFINITIONS Options.td)
 tablegen(LLVM Options.inc -gen-opt-parser-defs)
 add_public_tablegen_target(MachOOptionsTableGen)
 
-include_directories(${LLVM_MAIN_SRC_DIR}/../libunwind/include)
+include_directories(${LLVM_MAIN_SRC_DIR}/libunwind/include)
 
 add_lld_library(lldMachO2
   Arch/X86_64.cpp
-- 
2.31.1

