diff --git a/Cabal-syntax/src/Distribution/System.hs b/Cabal-syntax/src/Distribution/System.hs index ad1cdedf57a..041d13a3be7 100644 --- a/Cabal-syntax/src/Distribution/System.hs +++ b/Cabal-syntax/src/Distribution/System.hs @@ -183,7 +183,7 @@ buildOS = classifyOS Permissive System.Info.os -- | These are the known Arches: I386, X86_64, PPC, PPC64, Sparc, -- Arm, AArch64, Mips, SH, IA64, S390, S390X, Alpha, Hppa, Rs6000, --- M68k, Vax, RISCV64, JavaScript and Wasm32. +-- M68k, Vax, RISCV64, LoongArch64, JavaScript and Wasm32. -- -- The following aliases can also be used: -- * PPC alias: powerpc @@ -211,6 +211,7 @@ data Arch | M68k | Vax | RISCV64 + | LoongArch64 | JavaScript | Wasm32 | OtherArch String @@ -240,6 +241,7 @@ knownArches = , M68k , Vax , RISCV64 + , LoongArch64 , JavaScript , Wasm32 ] diff --git a/Cabal/src/Distribution/Simple/PreProcess.hs b/Cabal/src/Distribution/Simple/PreProcess.hs index 92c45026a94..31e228812d6 100644 --- a/Cabal/src/Distribution/Simple/PreProcess.hs +++ b/Cabal/src/Distribution/Simple/PreProcess.hs @@ -863,6 +863,7 @@ platformDefines lbi = M68k -> ["m68k"] Vax -> ["vax"] RISCV64 -> ["riscv64"] + LoongArch64 -> ["loongarch64"] JavaScript -> ["javascript"] Wasm32 -> ["wasm32"] OtherArch _ -> [] diff --git a/changelog.d/pr-9215 b/changelog.d/pr-9215 new file mode 100644 index 00000000000..3e8b1159f25 --- /dev/null +++ b/changelog.d/pr-9215 @@ -0,0 +1,3 @@ +synopsis: Add support for 64-bit LoongArch architecture +prs: #9215 +packages: Cabal Cabal-syntax