multilib-build.eclass: add riscv cases to header wrapper
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Tue, 7 May 2019 19:23:25 +0000 (21:23 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Tue, 7 May 2019 19:24:35 +0000 (21:24 +0200)
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
eclass/multilib-build.eclass

index 1065533ae5ba0686a6ebe624da2df4897418361d..beb98ab27086e97c72d1e92c453e2ab03028ed65 100644 (file)
@@ -488,6 +488,14 @@ multilib_prepare_wrappers() {
 #   elif(_MIPS_SIM == _ABIO32) /* o32 */
 #       error "abi_mips_o32 not supported by the package."
 #   endif
+#elif defined(__riscv)
+#      if defined(__riscv_float_abi_double)
+#       error "abi_riscv_lp64d not supported by the package."
+#      elif defined(__riscv_float_abi_single)
+#       error "abi_riscv_lp64f not supported by the package."
+#      else
+#       error "abi_riscv_lp64 not supported by the package."
+#      endif
 #elif defined(__sparc__)
 #      if defined(__arch64__)
 #       error "abi_sparc_64 not supported by the package."