File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ include(config-ix)
315315# Setup Compiler Flags
316316#================================
317317
318- # fcf-protection is a gcc/clang option for CET support on Linux platforms.
318+ # fcf-protection is a gcc/clang option for CET support on some ELF platforms.
319319# We need to handle MSVC CET option on Windows platforms.
320320if (NOT MSVC )
321321 if (COMPILER_RT_ENABLE_CET AND NOT COMPILER_RT_HAS_FCF_PROTECTION_FLAG)
Original file line number Diff line number Diff line change 1414#ifndef COMPILERRT_ASSEMBLY_H
1515#define COMPILERRT_ASSEMBLY_H
1616
17- #if defined( __linux__ ) && defined( __CET__ )
17+ #ifdef __CET__
1818#if __has_include (< cet .h > )
1919#include <cet.h>
2020#endif
Original file line number Diff line number Diff line change 1515#ifndef UNWIND_ASSEMBLY_H
1616#define UNWIND_ASSEMBLY_H
1717
18- #if defined(__linux__ ) && defined( __CET__ )
18+ #if defined(__CET__ )
1919#include <cet.h>
2020#define _LIBUNWIND_CET_ENDBR _CET_ENDBR
2121#else
Original file line number Diff line number Diff line change 1212
1313#include "libunwind.h"
1414
15- // Currently, CET is implemented on Linux x86 platforms.
16- #if defined(_LIBUNWIND_TARGET_LINUX ) && defined( __CET__ ) && defined(__SHSTK__ )
15+ // Currently, CET is implemented on some ELF x86 platforms.
16+ #if defined(__CET__ ) && defined(__SHSTK__ )
1717#define _LIBUNWIND_USE_CET 1
1818#endif
1919
You can’t perform that action at this time.
0 commit comments