Skip to content

Add LoongArch NCG support to 9.10

Ticat Fp requested to merge loong64-ncg-9.10 into ghc-9.10

Added NCG support to LoongArch64 to reduce compilation time having to wait.

And Currently all my authentication is based on the debian:sid container, which you can get with the following command:

docker pull lcr.loongnix.cn/library/debian:sid

As to cross-compiling, maybe the GHC's official wiki is enough.

The default version of ghc in debian:sid is 9.6.

Since the master branch code is currently generating larger object files, this can cause the R_LARCH_B26 relocation type overflow problem that is specific to the LoongAach64 platform. For convenience, I've ported to version 9.10, which also adds NCG support. This way, it is possible to build ghc-9.10 with the existing binary, and then build ghc-master.

So I ported this branch for convenience.

Merge request reports

Loading