[libunwind] Use relative includes to allow source-based dependencies without `-I` (PR #80443)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 2 07:11:31 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libunwind
Author: Yuriy Chernyshov (georgthegreat)
<details>
<summary>Changes</summary>
We store libunwind code inside monorepo and would like to reduce the overall amount of `-I` flags.
---
Full diff: https://github.com/llvm/llvm-project/pull/80443.diff
2 Files Affected:
- (modified) libunwind/include/libunwind.h (+1-1)
- (modified) libunwind/include/unwind.h (+3-3)
``````````diff
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)
``````````
</details>
https://github.com/llvm/llvm-project/pull/80443
More information about the cfe-commits
mailing list