summaryrefslogtreecommitdiffstats
path: root/lib/clang
diff options
context:
space:
mode:
Diffstat (limited to 'lib/clang')
-rw-r--r--lib/clang/include/llvm/Config/config.h2
-rw-r--r--lib/clang/include/llvm/Config/llvm-config.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/clang/include/llvm/Config/config.h b/lib/clang/include/llvm/Config/config.h
index 5b6761c..5ecb51c 100644
--- a/lib/clang/include/llvm/Config/config.h
+++ b/lib/clang/include/llvm/Config/config.h
@@ -552,7 +552,9 @@
/* #undef LLVM_ETCDIR */
/* Has gcc/MSVC atomic intrinsics */
+#ifndef __tune_i386__
#define LLVM_HAS_ATOMICS 1
+#endif
/* Host triple we were built on */
/* #undef LLVM_HOSTTRIPLE */
diff --git a/lib/clang/include/llvm/Config/llvm-config.h b/lib/clang/include/llvm/Config/llvm-config.h
index 05e17ca..28837f7 100644
--- a/lib/clang/include/llvm/Config/llvm-config.h
+++ b/lib/clang/include/llvm/Config/llvm-config.h
@@ -34,7 +34,9 @@
/* #undef LLVM_ETCDIR */
/* Has gcc/MSVC atomic intrinsics */
+#ifndef __tune_i386__
#define LLVM_HAS_ATOMICS 1
+#endif
/* Host triple we were built on */
/* #undef LLVM_HOSTTRIPLE */
OpenPOWER on IntegriCloud