diff options
author | Shih-wei Liao <sliao@google.com> | 2012-05-11 11:33:11 -0700 |
---|---|---|
committer | Shih-wei Liao <sliao@google.com> | 2012-05-11 11:33:11 -0700 |
commit | e2e355b869b9e4fa541bf6f4d7a0f492c1978269 (patch) | |
tree | f6bde0503730dc3729a17065cd2e7dce21a350da /host | |
parent | f5f5cf7b3c61a71e6c11228f5089da294275e9da (diff) | |
download | external_llvm-e2e355b869b9e4fa541bf6f4d7a0f492c1978269.zip external_llvm-e2e355b869b9e4fa541bf6f4d7a0f492c1978269.tar.gz external_llvm-e2e355b869b9e4fa541bf6f4d7a0f492c1978269.tar.bz2 |
Modify llvm-config.h to agree with config.h.
Change-Id: I7d835f78e102f04348ec23a5fd59eff82576bcb2
Diffstat (limited to 'host')
-rw-r--r-- | host/include/llvm/Config/llvm-config.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/host/include/llvm/Config/llvm-config.h b/host/include/llvm/Config/llvm-config.h index ca49e77..964a00a 100644 --- a/host/include/llvm/Config/llvm-config.h +++ b/host/include/llvm/Config/llvm-config.h @@ -38,9 +38,17 @@ /* 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 +#else + +#define LLVM_HAS_ATOMICS 0 + +#endif /* !defined(_WIN32) && !defined(_WIN64) */ + /* Installation directory for include files */ #define LLVM_INCLUDEDIR "/opt/llvm-android/include" |