ocaml: add loongarch64-linux support (#402087)

This commit is contained in:
Aleksana
2025-05-02 18:03:45 +08:00
committed by GitHub
2 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ let
in
let
useNativeCompilers = !stdenv.hostPlatform.isMips;
useNativeCompilers = !stdenv.hostPlatform.isMips && !stdenv.hostPlatform.isLoongArch64;
inherit (lib)
optional
optionals
@@ -39,10 +39,13 @@ stdenv.mkDerivation rec {
"${placeholder "out"}/etc/findlib.conf"
];
buildFlags = [
"all"
"opt"
];
buildFlags =
[
"all"
]
++ lib.optionals ocaml.nativeCompilers [
"opt"
];
setupHook = writeText "setupHook.sh" ''
addOCamlPath () {