aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorShih-wei Liao <sliao@google.com>2012-05-10 22:50:31 -0700
committerShih-wei Liao <sliao@google.com>2012-05-10 22:50:31 -0700
commitbc9f907b1682ea298242168028c7d93974be4fee (patch)
treeb8175a50d07c1f7a2528e9d6a917106b04609673 /host
parent48559a3be6ba305b80242908d5e05baeef6420f6 (diff)
downloadexternal_llvm-bc9f907b1682ea298242168028c7d93974be4fee.zip
external_llvm-bc9f907b1682ea298242168028c7d93974be4fee.tar.gz
external_llvm-bc9f907b1682ea298242168028c7d93974be4fee.tar.bz2
If _WIN32 or _WIN64, don't define LLVM_HAS_ATOMICS.
mingw32 gcc compiler is different from gcc on Linux or Mac, in terms of built-ins. Change-Id: I4d699006c5321273ec383533eb4d5c5239f69a96
Diffstat (limited to 'host')
-rw-r--r--host/include/llvm/Config/config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/include/llvm/Config/config.h b/host/include/llvm/Config/config.h
index 456bf9a..0447303 100644
--- a/host/include/llvm/Config/config.h
+++ b/host/include/llvm/Config/config.h
@@ -575,9 +575,13 @@
/* Installation directory for config files */
#define LLVM_ETCDIR "/opt/llvm-android/etc/llvm"
+#if !defined(_WIN32) && !defined(_WIN64)
+
/* Has gcc/MSVC atomic intrinsics */
#define LLVM_HAS_ATOMICS 1
+#endif /* !defined(_WIN32) && !defined(_WIN64) */
+
/* Installation directory for include files */
#define LLVM_INCLUDEDIR "/opt/llvm-android/include"