summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-04-02 16:57:35 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-04-02 16:57:35 (GMT)
commitde97f41cf30b09d44d6c2874897b4bf694c91ba3 (patch)
treee35c1441cf41d5107f38fe967445953e7a164c1c /Utilities
parente6caa47fa652d3e24a2c29a72faf82499e324eaa (diff)
parentaf61d6cb60a38069fb82f54bd7f2eb2b798bf4dc (diff)
downloadCMake-de97f41cf30b09d44d6c2874897b4bf694c91ba3.zip
CMake-de97f41cf30b09d44d6c2874897b4bf694c91ba3.tar.gz
CMake-de97f41cf30b09d44d6c2874897b4bf694c91ba3.tar.bz2
Merge topic 'fix-liblzma-access-alignment'
af61d6cb liblzma: Use unaligned access only on Intel and PowerPC archs
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmliblzma/config.h.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/Utilities/cmliblzma/config.h.in b/Utilities/cmliblzma/config.h.in
index 017c435..9c53150 100644
--- a/Utilities/cmliblzma/config.h.in
+++ b/Utilities/cmliblzma/config.h.in
@@ -280,4 +280,10 @@ typedef uint64_t uintmax_t;
/* Define to 1 if the system supports fast unaligned access to 16-bit and
32-bit integers. */
-#define TUKLIB_FAST_UNALIGNED_ACCESS 1
+#if defined(__i386) || defined(__i386__) || defined(_M_IX86) \
+ || defined(__x86_64) || defined(__x86_64__) || defined(_M_X64) \
+ || defined(__amd64) || defined(__amd64__) \
+ || defined(__powerpc) || defined(__powerpc__) \
+ || defined(__ppc) || defined(__ppc__) || defined(__POWERPC__)
+# define TUKLIB_FAST_UNALIGNED_ACCESS 1
+#endif