ocaml: add loongarch64-linux support (#402087)
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user