diff options
Diffstat (limited to 'meta-oe/recipes-support/gperftools/gperftools/0001-Support-Atomic-ops-on-clang.patch')
-rw-r--r-- | meta-oe/recipes-support/gperftools/gperftools/0001-Support-Atomic-ops-on-clang.patch | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/meta-oe/recipes-support/gperftools/gperftools/0001-Support-Atomic-ops-on-clang.patch b/meta-oe/recipes-support/gperftools/gperftools/0001-Support-Atomic-ops-on-clang.patch deleted file mode 100644 index 2fd21c278..000000000 --- a/meta-oe/recipes-support/gperftools/gperftools/0001-Support-Atomic-ops-on-clang.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | From aa0a63209af6813d87255ec3ab339f2dbbf27d6d Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 6 Mar 2017 13:38:46 -0800 | ||
4 | Subject: [PATCH] Support Atomic ops on clang | ||
5 | |||
6 | clang pretends to be gcc 4.2 which is a lie | ||
7 | it actually supports a lot more features then | ||
8 | gcc 4.2, here it depends on gcc 4.7 to enable | ||
9 | the atomics and fails for clang | ||
10 | |||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | |||
13 | Upstream-Status: Pending | ||
14 | |||
15 | --- | ||
16 | src/base/atomicops.h | 2 +- | ||
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
18 | |||
19 | diff --git a/src/base/atomicops.h b/src/base/atomicops.h | ||
20 | index dac95be..390733c 100644 | ||
21 | --- a/src/base/atomicops.h | ||
22 | +++ b/src/base/atomicops.h | ||
23 | @@ -124,7 +124,7 @@ | ||
24 | #include "base/atomicops-internals-linuxppc.h" | ||
25 | #elif defined(__GNUC__) && defined(__mips__) | ||
26 | #include "base/atomicops-internals-mips.h" | ||
27 | -#elif defined(__GNUC__) && GCC_VERSION >= 40700 | ||
28 | +#elif defined(__GNUC__) && GCC_VERSION >= 40700 || defined(__clang__) | ||
29 | #include "base/atomicops-internals-gcc.h" | ||
30 | #elif defined(__clang__) && CLANG_VERSION >= 30400 | ||
31 | #include "base/atomicops-internals-gcc.h" | ||