commit | f000c6dee8ba3b2cf065f753646538613ca4341f | [log] [tgz] |
---|---|---|
author | Nikita Popov <nikita.ppv@gmail.com> | Sat Feb 12 10:29:33 2022 +0100 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Feb 16 00:51:04 2022 -0800 |
tree | 05e8e93a8ef65930c9bf3f49e54c886e16bad6d5 | |
parent | 162fee29d937a80f38dd85b8e9edd97cf632e47e [diff] |
[libunwind] Only include cet.h if __CET__ defined We should not assume that the cet.h header exists just because we're on x86 linux. Only include it if __CET__ is defined. This makes the code more similar to what compiler-rt does in https://github.com/llvm/llvm-project/blob/ee423d93ead39e94c2970b3cc7ef6e6faa75d10b/compiler-rt/lib/builtins/assembly.h#L17 (though that one also has a __has_include() check -- I've not found that to be necessary). Differential Revision: https://reviews.llvm.org/D119697 GitOrigin-RevId: 2d2ef384b2f6e723edb793d08f52e7f4dc94ba3a