gambit: support targets, modules
This commit is contained in:
parent
65a9077095
commit
0febc57883
|
@ -35,6 +35,7 @@ gccStdenv.mkDerivation rec {
|
||||||
#runtimeDeps = [ gnused gnugrep ];
|
#runtimeDeps = [ gnused gnugrep ];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
|
"--enable-targets=${gambit-params.targets}"
|
||||||
"--enable-single-host"
|
"--enable-single-host"
|
||||||
"--enable-c-opt=${optimizationSetting}"
|
"--enable-c-opt=${optimizationSetting}"
|
||||||
"--enable-gcc-opts"
|
"--enable-gcc-opts"
|
||||||
|
@ -94,6 +95,7 @@ gccStdenv.mkDerivation rec {
|
||||||
|
|
||||||
# Now use the bootstrap compiler to build the real thing!
|
# Now use the bootstrap compiler to build the real thing!
|
||||||
make -j$NIX_BUILD_CORES from-scratch
|
make -j$NIX_BUILD_CORES from-scratch
|
||||||
|
${lib.optionalString gambit-params.modules "make -j$NIX_BUILD_CORES modules"}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
|
|
@ -2,12 +2,16 @@
|
||||||
|
|
||||||
rec {
|
rec {
|
||||||
stable-params = {
|
stable-params = {
|
||||||
|
stable = true;
|
||||||
defaultRuntimeOptions = "f8,-8,t8";
|
defaultRuntimeOptions = "f8,-8,t8";
|
||||||
buildRuntimeOptions = "f8,-8,t8";
|
buildRuntimeOptions = "f8,-8,t8";
|
||||||
fix-stamp = git-version : "";
|
fix-stamp = git-version : "";
|
||||||
|
targets = "java,js,php,python,ruby";
|
||||||
|
modules = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
unstable-params = {
|
unstable-params = {
|
||||||
|
stable = false;
|
||||||
defaultRuntimeOptions = "iL,fL,-L,tL";
|
defaultRuntimeOptions = "iL,fL,-L,tL";
|
||||||
buildRuntimeOptions = "i8,f8,-8,t8";
|
buildRuntimeOptions = "i8,f8,-8,t8";
|
||||||
fix-stamp = git-version : ''
|
fix-stamp = git-version : ''
|
||||||
|
@ -15,6 +19,8 @@ rec {
|
||||||
--replace "$(grep '^PACKAGE_VERSION=.*$' configure)" 'PACKAGE_VERSION="v${git-version}"' \
|
--replace "$(grep '^PACKAGE_VERSION=.*$' configure)" 'PACKAGE_VERSION="v${git-version}"' \
|
||||||
--replace "$(grep '^PACKAGE_STRING=.*$' configure)" 'PACKAGE_STRING="Gambit v${git-version}"' ;
|
--replace "$(grep '^PACKAGE_STRING=.*$' configure)" 'PACKAGE_STRING="Gambit v${git-version}"' ;
|
||||||
'';
|
'';
|
||||||
|
targets = "arm,java,js,php,python,riscv-32,riscv-64,ruby,x86,x86-64"; # eats 100% cpu on _digest
|
||||||
|
modules = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
export-gambopt = params : "export GAMBOPT=${params.buildRuntimeOptions} ;";
|
export-gambopt = params : "export GAMBOPT=${params.buildRuntimeOptions} ;";
|
||||||
|
|
Loading…
Reference in a new issue