summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-01-09 14:50:58 (GMT)
committerBrad King <brad.king@kitware.com>2018-01-09 14:52:07 (GMT)
commitd49986b3b8fc5079f689de58b8275036c5184346 (patch)
tree872b94f1d10adc6d2e17b19f177eb1eeb809d18c
parent166bf4c490b8f46eca057fc23c3f3c2e042e9cb3 (diff)
downloadCMake-d49986b3b8fc5079f689de58b8275036c5184346.zip
CMake-d49986b3b8fc5079f689de58b8275036c5184346.tar.gz
CMake-d49986b3b8fc5079f689de58b8275036c5184346.tar.bz2
KWIML: Backport RISC-V update to CMake 3.10
Backport KWIML commit 6fc81d8816 (abi.h: Update RISC-V support for revised macro names, 2017-12-30) to the CMake 3.10 release branch. The upstream RISC-V project changed some compiler symbols so `__riscv__` must now be renamed `__riscv`. Patch-by: Richard W.M. Jones <rjones@redhat.com>
-rw-r--r--Utilities/KWIML/include/kwiml/abi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/KWIML/include/kwiml/abi.h b/Utilities/KWIML/include/kwiml/abi.h
index 5ffd542..ce8a896 100644
--- a/Utilities/KWIML/include/kwiml/abi.h
+++ b/Utilities/KWIML/include/kwiml/abi.h
@@ -468,7 +468,7 @@ suppression macro KWIML_ABI_NO_VERIFY was defined.
# define KWIML_ABI_ENDIAN_ID KWIML_ABI_ENDIAN_ID_LITTLE
/* RISC-V */
-#elif defined(__riscv__)
+#elif defined(__riscv) || defined(__riscv__)
# define KWIML_ABI_ENDIAN_ID KWIML_ABI_ENDIAN_ID_LITTLE
/* Unknown CPU */