Merge pull request #41861 from obsidiansystems/ghc-gmp
ghc: Default integer-simple usage based one whether GNU MP is available
This commit is contained in:
commit
a3b3d95681
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
, # If enabled, GHC will be built with the GPL-free but slower integer-simple
|
, # If enabled, GHC will be built with the GPL-free but slower integer-simple
|
||||||
# library instead of the faster but GPLed integer-gmp library.
|
# library instead of the faster but GPLed integer-gmp library.
|
||||||
enableIntegerSimple ? false, gmp ? null
|
enableIntegerSimple ? !(gmp.meta.available or false), gmp
|
||||||
|
|
||||||
, # If enabled, use -fPIC when compiling static libs.
|
, # If enabled, use -fPIC when compiling static libs.
|
||||||
enableRelocatedStaticLibs ? targetPlatform != hostPlatform
|
enableRelocatedStaticLibs ? targetPlatform != hostPlatform
|
||||||
@ -30,8 +30,6 @@
|
|||||||
ghcFlavour ? stdenv.lib.optionalString (targetPlatform != hostPlatform) "perf-cross"
|
ghcFlavour ? stdenv.lib.optionalString (targetPlatform != hostPlatform) "perf-cross"
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert !enableIntegerSimple -> gmp != null;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (bootPkgs) ghc;
|
inherit (bootPkgs) ghc;
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
, # If enabled, GHC will be built with the GPL-free but slower integer-simple
|
, # If enabled, GHC will be built with the GPL-free but slower integer-simple
|
||||||
# library instead of the faster but GPLed integer-gmp library.
|
# library instead of the faster but GPLed integer-gmp library.
|
||||||
enableIntegerSimple ? false, gmp ? null
|
enableIntegerSimple ? !(gmp.meta.available or false), gmp
|
||||||
|
|
||||||
, # If enabled, use -fPIC when compiling static libs.
|
, # If enabled, use -fPIC when compiling static libs.
|
||||||
enableRelocatedStaticLibs ? targetPlatform != hostPlatform
|
enableRelocatedStaticLibs ? targetPlatform != hostPlatform
|
||||||
@ -29,8 +29,6 @@
|
|||||||
ghcFlavour ? stdenv.lib.optionalString (targetPlatform != hostPlatform) "perf-cross"
|
ghcFlavour ? stdenv.lib.optionalString (targetPlatform != hostPlatform) "perf-cross"
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert !enableIntegerSimple -> gmp != null;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (bootPkgs) ghc;
|
inherit (bootPkgs) ghc;
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
, # If enabled, GHC will be built with the GPL-free but slower integer-simple
|
, # If enabled, GHC will be built with the GPL-free but slower integer-simple
|
||||||
# library instead of the faster but GPLed integer-gmp library.
|
# library instead of the faster but GPLed integer-gmp library.
|
||||||
enableIntegerSimple ? false, gmp ? null
|
enableIntegerSimple ? !(gmp.meta.available or false), gmp
|
||||||
|
|
||||||
, # If enabled, use -fPIC when compiling static libs.
|
, # If enabled, use -fPIC when compiling static libs.
|
||||||
enableRelocatedStaticLibs ? targetPlatform != hostPlatform
|
enableRelocatedStaticLibs ? targetPlatform != hostPlatform
|
||||||
@ -34,8 +34,6 @@
|
|||||||
deterministicProfiling ? false
|
deterministicProfiling ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert !enableIntegerSimple -> gmp != null;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (bootPkgs) ghc;
|
inherit (bootPkgs) ghc;
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
, # If enabled, GHC will be built with the GPL-free but slower integer-simple
|
, # If enabled, GHC will be built with the GPL-free but slower integer-simple
|
||||||
# library instead of the faster but GPLed integer-gmp library.
|
# library instead of the faster but GPLed integer-gmp library.
|
||||||
enableIntegerSimple ? false, gmp ? null
|
enableIntegerSimple ? !(gmp.meta.available or false), gmp
|
||||||
|
|
||||||
, # If enabled, use -fPIC when compiling static libs.
|
, # If enabled, use -fPIC when compiling static libs.
|
||||||
enableRelocatedStaticLibs ? targetPlatform != hostPlatform
|
enableRelocatedStaticLibs ? targetPlatform != hostPlatform
|
||||||
@ -32,8 +32,6 @@
|
|||||||
ghcFlavour ? stdenv.lib.optionalString (targetPlatform != hostPlatform) "perf-cross"
|
ghcFlavour ? stdenv.lib.optionalString (targetPlatform != hostPlatform) "perf-cross"
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert !enableIntegerSimple -> gmp != null;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (bootPkgs) ghc;
|
inherit (bootPkgs) ghc;
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
, # If enabled, GHC will be built with the GPL-free but slower integer-simple
|
, # If enabled, GHC will be built with the GPL-free but slower integer-simple
|
||||||
# library instead of the faster but GPLed integer-gmp library.
|
# library instead of the faster but GPLed integer-gmp library.
|
||||||
enableIntegerSimple ? false, gmp ? null
|
enableIntegerSimple ? !(gmp.meta.available or false), gmp
|
||||||
|
|
||||||
, # If enabled, use -fPIC when compiling static libs.
|
, # If enabled, use -fPIC when compiling static libs.
|
||||||
enableRelocatedStaticLibs ? targetPlatform != hostPlatform
|
enableRelocatedStaticLibs ? targetPlatform != hostPlatform
|
||||||
@ -33,8 +33,6 @@
|
|||||||
ghcFlavour ? stdenv.lib.optionalString (targetPlatform != hostPlatform) "perf-cross"
|
ghcFlavour ? stdenv.lib.optionalString (targetPlatform != hostPlatform) "perf-cross"
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert !enableIntegerSimple -> gmp != null;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (bootPkgs) ghc;
|
inherit (bootPkgs) ghc;
|
||||||
|
|
||||||
|
@ -75,6 +75,7 @@ let self = stdenv.mkDerivation rec {
|
|||||||
asymptotically faster algorithms.
|
asymptotically faster algorithms.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
broken = with stdenv.hostPlatform; useAndroidPrebuilt || useiOSPrebuilt;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = [ maintainers.peti maintainers.vrthra ];
|
maintainers = [ maintainers.peti maintainers.vrthra ];
|
||||||
};
|
};
|
||||||
|
@ -8,7 +8,6 @@ let
|
|||||||
integerSimpleExcludes = [
|
integerSimpleExcludes = [
|
||||||
"ghc7103Binary"
|
"ghc7103Binary"
|
||||||
"ghc821Binary"
|
"ghc821Binary"
|
||||||
"ghcCross"
|
|
||||||
"ghcjs"
|
"ghcjs"
|
||||||
"ghcjs710"
|
"ghcjs710"
|
||||||
"ghcjs80"
|
"ghcjs80"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user