Addressing OE linking issues when built with GCC (#167)

* Use C++17 inline statics

This leads to better codegen in GCC, and fixes some linking issues in OE.

* Detect GCC and OE combination and fall-back to lock based ABA.

* clangformat
This commit is contained in:
Matthew Parkinson
2020-04-10 13:49:39 +01:00
committed by GitHub
parent c09b2468f9
commit cf9c2eb9d9
3 changed files with 17 additions and 7 deletions

View File

@@ -19,6 +19,10 @@
#endif
#if !defined(__clang__) && defined(__GNUC__)
# define GCC_NOT_CLANG
#endif
#ifdef GCC_NOT_CLANG
# if __GNUC__ >= 8
# define GCC_VERSION_EIGHT_PLUS
# endif