[libunwind] Use relative includes to allow source-based dependencies without `-I` (PR #80443)

Yuriy Chernyshov via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 2 07:11:03 PST 2024


https://github.com/georgthegreat created https://github.com/llvm/llvm-project/pull/80443

We store libunwind code inside monorepo and would like to reduce the overall amount of `-I` flags.

>From 3e8bbe318ebbd498a7457afee2192c47650b6dad Mon Sep 17 00:00:00 2001
From: Yuriy Chernyshov <thegeorg at yandex-team.com>
Date: Fri, 2 Feb 2024 18:09:47 +0300
Subject: [PATCH] Use relative includes to allow source-based dependencies
 without -I

---
 libunwind/include/libunwind.h | 2 +-
 libunwind/include/unwind.h    | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libunwind/include/libunwind.h b/libunwind/include/libunwind.h
index b2dae8feed9a3..02739b384e9da 100644
--- a/libunwind/include/libunwind.h
+++ b/libunwind/include/libunwind.h
@@ -13,7 +13,7 @@
 #ifndef __LIBUNWIND__
 #define __LIBUNWIND__
 
-#include <__libunwind_config.h>
+#include "__libunwind_config.h"
 
 #include <stdint.h>
 #include <stddef.h>
diff --git a/libunwind/include/unwind.h b/libunwind/include/unwind.h
index b1775d3a3decc..1973c5826d3ca 100644
--- a/libunwind/include/unwind.h
+++ b/libunwind/include/unwind.h
@@ -13,7 +13,7 @@
 #ifndef __UNWIND_H__
 #define __UNWIND_H__
 
-#include <__libunwind_config.h>
+#include "__libunwind_config.h"
 
 #include <stdint.h>
 #include <stddef.h>
@@ -56,9 +56,9 @@ typedef enum {
 typedef struct _Unwind_Context _Unwind_Context;   // opaque
 
 #if defined(_LIBUNWIND_ARM_EHABI)
-#include <unwind_arm_ehabi.h>
+#include "unwind_arm_ehabi.h"
 #else
-#include <unwind_itanium.h>
+#include "unwind_itanium.h"
 #endif
 
 typedef _Unwind_Reason_Code (*_Unwind_Stop_Fn)



More information about the cfe-commits mailing list