[PATCH] D119697: [libunwind] Only include cet.h if __CET__ defined

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 16 00:47:34 PST 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG2d2ef384b2f6: [libunwind] Only include cet.h if __CET__ defined (authored by nikic).
Herald added projects: LLVM, libunwind.
Herald added subscribers: libcxx-commits, llvm-commits.

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119697/new/

https://reviews.llvm.org/D119697

Files:
  libunwind/src/assembly.h


Index: libunwind/src/assembly.h
===================================================================
--- libunwind/src/assembly.h
+++ libunwind/src/assembly.h
@@ -15,7 +15,7 @@
 #ifndef UNWIND_ASSEMBLY_H
 #define UNWIND_ASSEMBLY_H
 
-#if (defined(__i386__) || defined(__x86_64__)) && defined(__linux__)
+#if defined(__linux__) && defined(__CET__)
 #include <cet.h>
 #define _LIBUNWIND_CET_ENDBR _CET_ENDBR
 #else


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119697.409166.patch
Type: text/x-patch
Size: 412 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220216/a83005a6/attachment.bin>


More information about the llvm-commits mailing list