Commit 38220af4 authored by Dave Watson's avatar Dave Watson Committed by Jordan DeLong

x86intrinsic seems to be problematic for clang

Summary: fbinject (clang code parser) throws some errors when
including the x86intrinsic header.

Test Plan:
D929356 compiles after this diff.  It adds a dep on RWSpinLock.

Reviewed By: beng@fb.com

FB internal diff: D950285
parent e16c0109
...@@ -106,8 +106,9 @@ pthread_rwlock_t Read 728698 24us 101ns 7.28ms 194us ...@@ -106,8 +106,9 @@ pthread_rwlock_t Read 728698 24us 101ns 7.28ms 194us
*/ */
#if defined(__GNUC__) && (defined(__i386) || defined(__x86_64__) || \ #if defined(__GNUC__) && !defined(__clang__) && \
defined(ARCH_K8)) (defined(__i386) || defined(__x86_64__) || \
defined(ARCH_K8))
#define RW_SPINLOCK_USE_X86_INTRINSIC_ #define RW_SPINLOCK_USE_X86_INTRINSIC_
#include <x86intrin.h> #include <x86intrin.h>
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment