Enable libphobos for RISC-V (riscv64)
libphobos gained support for RISC-V in Dec 2018 (before GCC 9 was released): https://gcc.gnu.org/ml/gcc-patches/2018-12/msg00021.html Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
This commit is contained in:
parent
d9a688a462
commit
948d611882
6
gcc.spec
6
gcc.spec
|
@ -264,6 +264,8 @@ Patch15: gcc9-utf-array-test.patch
|
|||
Patch16: gcc9-aarch64-bootstrap.patch
|
||||
Patch17: gcc9-pr88927.patch
|
||||
|
||||
Patch30: libphobos-enable-riscv.patch
|
||||
|
||||
Patch1000: nvptx-tools-no-ptxas.patch
|
||||
Patch1001: nvptx-tools-build.patch
|
||||
Patch1002: nvptx-tools-glibc.patch
|
||||
|
@ -848,6 +850,8 @@ to NVidia PTX capable devices if available.
|
|||
%patch16 -p0 -b .aarch64-bootstrap~
|
||||
%patch17 -p0 -b .pr88927~
|
||||
|
||||
%patch30 -p1 -b .libphobos-riscv~
|
||||
|
||||
cd nvptx-tools-%{nvptx_tools_gitrev}
|
||||
%patch1000 -p1 -b .nvptx-tools-no-ptxas~
|
||||
%patch1001 -p1 -b .nvptx-tools-build~
|
||||
|
@ -1344,6 +1348,8 @@ find %{buildroot} -name \*.la | xargs rm -f
|
|||
|
||||
mv %{buildroot}%{_prefix}/%{_lib}/libgfortran.spec $FULLPATH/
|
||||
%if %{build_d}
|
||||
find %{buildroot} -name libgphobos.spec
|
||||
find %{buildroot}
|
||||
mv %{buildroot}%{_prefix}/%{_lib}/libgphobos.spec $FULLPATH/
|
||||
%endif
|
||||
%if %{build_libitm}
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/libphobos/configure.tgt b/libphobos/configure.tgt
|
||||
index 2b2a97468..f8775b712 100644
|
||||
--- a/libphobos/configure.tgt
|
||||
+++ b/libphobos/configure.tgt
|
||||
@@ -30,6 +30,8 @@ case "${target}" in
|
||||
;;
|
||||
x86_64-*-linux* | i?86-*-linux*)
|
||||
;;
|
||||
+ riscv*-*-linux*)
|
||||
+ ;;
|
||||
*)
|
||||
UNSUPPORTED=1
|
||||
;;
|
Loading…
Reference in New Issue