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 | 16 |
1 files changed, 7 insertions, 9 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 index e582c0da6..2fd21c278 100644 --- 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 | |||
@@ -1,4 +1,4 @@ | |||
1 | From ea9f64eb2cdf3be6c4dc65fa1472d854616e43ca Mon Sep 17 00:00:00 2001 | 1 | From aa0a63209af6813d87255ec3ab339f2dbbf27d6d Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Mon, 6 Mar 2017 13:38:46 -0800 | 3 | Date: Mon, 6 Mar 2017 13:38:46 -0800 |
4 | Subject: [PATCH] Support Atomic ops on clang | 4 | Subject: [PATCH] Support Atomic ops on clang |
@@ -9,25 +9,23 @@ gcc 4.2, here it depends on gcc 4.7 to enable | |||
9 | the atomics and fails for clang | 9 | the atomics and fails for clang |
10 | 10 | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
12 | --- | 12 | |
13 | Upstream-Status: Pending | 13 | Upstream-Status: Pending |
14 | 14 | ||
15 | --- | ||
15 | src/base/atomicops.h | 2 +- | 16 | src/base/atomicops.h | 2 +- |
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | 17 | 1 file changed, 1 insertion(+), 1 deletion(-) |
17 | 18 | ||
18 | diff --git a/src/base/atomicops.h b/src/base/atomicops.h | 19 | diff --git a/src/base/atomicops.h b/src/base/atomicops.h |
19 | index be038f3..f1a21ff 100644 | 20 | index dac95be..390733c 100644 |
20 | --- a/src/base/atomicops.h | 21 | --- a/src/base/atomicops.h |
21 | +++ b/src/base/atomicops.h | 22 | +++ b/src/base/atomicops.h |
22 | @@ -118,7 +118,7 @@ | 23 | @@ -124,7 +124,7 @@ |
23 | #include "base/atomicops-internals-linuxppc.h" | 24 | #include "base/atomicops-internals-linuxppc.h" |
24 | #elif defined(__GNUC__) && defined(__mips__) | 25 | #elif defined(__GNUC__) && defined(__mips__) |
25 | #include "base/atomicops-internals-mips.h" | 26 | #include "base/atomicops-internals-mips.h" |
26 | -#elif defined(__GNUC__) && GCC_VERSION >= 40700 | 27 | -#elif defined(__GNUC__) && GCC_VERSION >= 40700 |
27 | +#elif defined(__GNUC__) && GCC_VERSION >= 40700 || defined(__clang__) | 28 | +#elif defined(__GNUC__) && GCC_VERSION >= 40700 || defined(__clang__) |
28 | #include "base/atomicops-internals-gcc.h" | 29 | #include "base/atomicops-internals-gcc.h" |
29 | #else | 30 | #elif defined(__clang__) && CLANG_VERSION >= 30400 |
30 | #error You need to implement atomic operations for this architecture | 31 | #include "base/atomicops-internals-gcc.h" |
31 | -- | ||
32 | 2.12.0 | ||
33 | |||