llvm: add in a missing check dep
Port of6d0c87602f
("llvmPackages_15.llvm: add in a missing check dep"). I did not include the sysctl nativeCheckInputs change from that commit, as it looks like it was included by mistake and was supposed to be inc7231c0b6d
("llvmPackages_15.llvm: run the tests on macOS"). I've also included the doCheck default from that commit (without the change to run on non-Linux), as6d0c87602f
just set it to true.
This commit is contained in:
parent
c5f758174b
commit
3816765e47
10 changed files with 270 additions and 30 deletions
|
@ -15,6 +15,8 @@
|
||||||
, zlib
|
, zlib
|
||||||
, buildLlvmTools
|
, buildLlvmTools
|
||||||
, debugVersion ? false
|
, debugVersion ? false
|
||||||
|
, doCheck ? stdenv.isLinux && (!stdenv.isx86_32)
|
||||||
|
&& (stdenv.hostPlatform == stdenv.buildPlatform)
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
, enableSharedLibraries ? !stdenv.hostPlatform.isStatic
|
, enableSharedLibraries ? !stdenv.hostPlatform.isStatic
|
||||||
# broken for Ampere eMAG 8180 (c2.large.arm on Packet) #56245
|
# broken for Ampere eMAG 8180 (c2.large.arm on Packet) #56245
|
||||||
|
@ -30,6 +32,29 @@ let
|
||||||
shortVersion = with lib;
|
shortVersion = with lib;
|
||||||
concatStringsSep "." (take 1 (splitString "." release_version));
|
concatStringsSep "." (take 1 (splitString "." release_version));
|
||||||
|
|
||||||
|
# Ordinarily we would just the `doCheck` and `checkDeps` functionality
|
||||||
|
# `mkDerivation` gives us to manage our test dependencies (instead of breaking
|
||||||
|
# out `doCheck` as a package level attribute).
|
||||||
|
#
|
||||||
|
# Unfortunately `lit` does not forward `$PYTHONPATH` to children processes, in
|
||||||
|
# particular the children it uses to do feature detection.
|
||||||
|
#
|
||||||
|
# This means that python deps we add to `checkDeps` (which the python
|
||||||
|
# interpreter is made aware of via `$PYTHONPATH` – populated by the python
|
||||||
|
# setup hook) are not picked up by `lit` which causes it to skip tests.
|
||||||
|
#
|
||||||
|
# Adding `python3.withPackages (ps: [ ... ])` to `checkDeps` also doesn't work
|
||||||
|
# because this package is shadowed in `$PATH` by the regular `python3`
|
||||||
|
# package.
|
||||||
|
#
|
||||||
|
# So, we "manually" assemble one python derivation for the package to depend
|
||||||
|
# on, taking into account whether checks are enabled or not:
|
||||||
|
python = if doCheck then
|
||||||
|
let
|
||||||
|
checkDeps = ps: with ps; [ psutil ];
|
||||||
|
in python3.withPackages checkDeps
|
||||||
|
else python3;
|
||||||
|
|
||||||
in stdenv.mkDerivation (rec {
|
in stdenv.mkDerivation (rec {
|
||||||
pname = "llvm";
|
pname = "llvm";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
@ -48,7 +73,7 @@ in stdenv.mkDerivation (rec {
|
||||||
|
|
||||||
outputs = [ "out" "lib" "dev" "python" ];
|
outputs = [ "out" "lib" "dev" "python" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python3 ]
|
nativeBuildInputs = [ cmake python ]
|
||||||
++ optionals enableManpages [ python3.pkgs.sphinx python3.pkgs.recommonmark ];
|
++ optionals enableManpages [ python3.pkgs.sphinx python3.pkgs.recommonmark ];
|
||||||
|
|
||||||
buildInputs = [ libxml2 libffi ]
|
buildInputs = [ libxml2 libffi ]
|
||||||
|
@ -255,8 +280,7 @@ in stdenv.mkDerivation (rec {
|
||||||
cp NATIVE/bin/llvm-config $dev/bin/llvm-config-native
|
cp NATIVE/bin/llvm-config $dev/bin/llvm-config-native
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = stdenv.isLinux && (!stdenv.isx86_32)
|
inherit doCheck;
|
||||||
&& (stdenv.hostPlatform == stdenv.buildPlatform);
|
|
||||||
|
|
||||||
checkTarget = "check-all";
|
checkTarget = "check-all";
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
, zlib
|
, zlib
|
||||||
, buildLlvmTools
|
, buildLlvmTools
|
||||||
, debugVersion ? false
|
, debugVersion ? false
|
||||||
|
, doCheck ? stdenv.isLinux && (!stdenv.isx86_32) && (!stdenv.hostPlatform.isMusl) && (!stdenv.hostPlatform.isRiscV)
|
||||||
|
&& (stdenv.hostPlatform == stdenv.buildPlatform)
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
, enableSharedLibraries ? !stdenv.hostPlatform.isStatic
|
, enableSharedLibraries ? !stdenv.hostPlatform.isStatic
|
||||||
# broken for Ampere eMAG 8180 (c2.large.arm on Packet) #56245
|
# broken for Ampere eMAG 8180 (c2.large.arm on Packet) #56245
|
||||||
|
@ -30,6 +32,29 @@ let
|
||||||
shortVersion = with lib;
|
shortVersion = with lib;
|
||||||
concatStringsSep "." (take 1 (splitString "." release_version));
|
concatStringsSep "." (take 1 (splitString "." release_version));
|
||||||
|
|
||||||
|
# Ordinarily we would just the `doCheck` and `checkDeps` functionality
|
||||||
|
# `mkDerivation` gives us to manage our test dependencies (instead of breaking
|
||||||
|
# out `doCheck` as a package level attribute).
|
||||||
|
#
|
||||||
|
# Unfortunately `lit` does not forward `$PYTHONPATH` to children processes, in
|
||||||
|
# particular the children it uses to do feature detection.
|
||||||
|
#
|
||||||
|
# This means that python deps we add to `checkDeps` (which the python
|
||||||
|
# interpreter is made aware of via `$PYTHONPATH` – populated by the python
|
||||||
|
# setup hook) are not picked up by `lit` which causes it to skip tests.
|
||||||
|
#
|
||||||
|
# Adding `python3.withPackages (ps: [ ... ])` to `checkDeps` also doesn't work
|
||||||
|
# because this package is shadowed in `$PATH` by the regular `python3`
|
||||||
|
# package.
|
||||||
|
#
|
||||||
|
# So, we "manually" assemble one python derivation for the package to depend
|
||||||
|
# on, taking into account whether checks are enabled or not:
|
||||||
|
python = if doCheck then
|
||||||
|
let
|
||||||
|
checkDeps = ps: with ps; [ psutil ];
|
||||||
|
in python3.withPackages checkDeps
|
||||||
|
else python3;
|
||||||
|
|
||||||
in stdenv.mkDerivation (rec {
|
in stdenv.mkDerivation (rec {
|
||||||
pname = "llvm";
|
pname = "llvm";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
@ -48,7 +73,7 @@ in stdenv.mkDerivation (rec {
|
||||||
|
|
||||||
outputs = [ "out" "lib" "dev" "python" ];
|
outputs = [ "out" "lib" "dev" "python" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python3 ]
|
nativeBuildInputs = [ cmake python ]
|
||||||
++ optionals enableManpages [ python3.pkgs.sphinx python3.pkgs.recommonmark ];
|
++ optionals enableManpages [ python3.pkgs.sphinx python3.pkgs.recommonmark ];
|
||||||
|
|
||||||
buildInputs = [ libxml2 libffi ]
|
buildInputs = [ libxml2 libffi ]
|
||||||
|
@ -267,8 +292,7 @@ in stdenv.mkDerivation (rec {
|
||||||
cp NATIVE/bin/llvm-config $dev/bin/llvm-config-native
|
cp NATIVE/bin/llvm-config $dev/bin/llvm-config-native
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = stdenv.isLinux && (!stdenv.isx86_32) && (!stdenv.hostPlatform.isMusl) && (!stdenv.hostPlatform.isRiscV)
|
inherit doCheck;
|
||||||
&& (stdenv.hostPlatform == stdenv.buildPlatform);
|
|
||||||
|
|
||||||
checkTarget = "check-all";
|
checkTarget = "check-all";
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
, zlib
|
, zlib
|
||||||
, buildLlvmTools
|
, buildLlvmTools
|
||||||
, debugVersion ? false
|
, debugVersion ? false
|
||||||
|
, doCheck ? stdenv.isLinux && (!stdenv.isx86_32) && (!stdenv.hostPlatform.isMusl)
|
||||||
|
&& (stdenv.hostPlatform == stdenv.buildPlatform)
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
, enableSharedLibraries ? !stdenv.hostPlatform.isStatic
|
, enableSharedLibraries ? !stdenv.hostPlatform.isStatic
|
||||||
# broken for Ampere eMAG 8180 (c2.large.arm on Packet) #56245
|
# broken for Ampere eMAG 8180 (c2.large.arm on Packet) #56245
|
||||||
|
@ -30,6 +32,29 @@ let
|
||||||
shortVersion = with lib;
|
shortVersion = with lib;
|
||||||
concatStringsSep "." (take 1 (splitString "." release_version));
|
concatStringsSep "." (take 1 (splitString "." release_version));
|
||||||
|
|
||||||
|
# Ordinarily we would just the `doCheck` and `checkDeps` functionality
|
||||||
|
# `mkDerivation` gives us to manage our test dependencies (instead of breaking
|
||||||
|
# out `doCheck` as a package level attribute).
|
||||||
|
#
|
||||||
|
# Unfortunately `lit` does not forward `$PYTHONPATH` to children processes, in
|
||||||
|
# particular the children it uses to do feature detection.
|
||||||
|
#
|
||||||
|
# This means that python deps we add to `checkDeps` (which the python
|
||||||
|
# interpreter is made aware of via `$PYTHONPATH` – populated by the python
|
||||||
|
# setup hook) are not picked up by `lit` which causes it to skip tests.
|
||||||
|
#
|
||||||
|
# Adding `python3.withPackages (ps: [ ... ])` to `checkDeps` also doesn't work
|
||||||
|
# because this package is shadowed in `$PATH` by the regular `python3`
|
||||||
|
# package.
|
||||||
|
#
|
||||||
|
# So, we "manually" assemble one python derivation for the package to depend
|
||||||
|
# on, taking into account whether checks are enabled or not:
|
||||||
|
python = if doCheck then
|
||||||
|
let
|
||||||
|
checkDeps = ps: with ps; [ psutil ];
|
||||||
|
in python3.withPackages checkDeps
|
||||||
|
else python3;
|
||||||
|
|
||||||
in stdenv.mkDerivation (rec {
|
in stdenv.mkDerivation (rec {
|
||||||
pname = "llvm";
|
pname = "llvm";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
@ -48,7 +73,7 @@ in stdenv.mkDerivation (rec {
|
||||||
|
|
||||||
outputs = [ "out" "lib" "dev" "python" ];
|
outputs = [ "out" "lib" "dev" "python" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python3 ]
|
nativeBuildInputs = [ cmake python ]
|
||||||
++ optionals enableManpages [ python3.pkgs.sphinx python3.pkgs.recommonmark ];
|
++ optionals enableManpages [ python3.pkgs.sphinx python3.pkgs.recommonmark ];
|
||||||
|
|
||||||
buildInputs = [ libxml2 libffi ]
|
buildInputs = [ libxml2 libffi ]
|
||||||
|
@ -255,8 +280,7 @@ in stdenv.mkDerivation (rec {
|
||||||
cp NATIVE/bin/llvm-config $dev/bin/llvm-config-native
|
cp NATIVE/bin/llvm-config $dev/bin/llvm-config-native
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = stdenv.isLinux && (!stdenv.isx86_32) && (!stdenv.hostPlatform.isMusl)
|
inherit doCheck;
|
||||||
&& (stdenv.hostPlatform == stdenv.buildPlatform);
|
|
||||||
|
|
||||||
checkTarget = "check-all";
|
checkTarget = "check-all";
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,8 @@
|
||||||
, which
|
, which
|
||||||
, buildLlvmTools
|
, buildLlvmTools
|
||||||
, debugVersion ? false
|
, debugVersion ? false
|
||||||
|
, doCheck ? stdenv.isLinux && (!stdenv.isx86_32) && (!stdenv.hostPlatform.isMusl)
|
||||||
|
&& (stdenv.hostPlatform == stdenv.buildPlatform)
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
, enableSharedLibraries ? !stdenv.hostPlatform.isStatic
|
, enableSharedLibraries ? !stdenv.hostPlatform.isStatic
|
||||||
# broken for Ampere eMAG 8180 (c2.large.arm on Packet) #56245
|
# broken for Ampere eMAG 8180 (c2.large.arm on Packet) #56245
|
||||||
|
@ -31,6 +33,29 @@ let
|
||||||
shortVersion = with lib;
|
shortVersion = with lib;
|
||||||
concatStringsSep "." (take 1 (splitString "." release_version));
|
concatStringsSep "." (take 1 (splitString "." release_version));
|
||||||
|
|
||||||
|
# Ordinarily we would just the `doCheck` and `checkDeps` functionality
|
||||||
|
# `mkDerivation` gives us to manage our test dependencies (instead of breaking
|
||||||
|
# out `doCheck` as a package level attribute).
|
||||||
|
#
|
||||||
|
# Unfortunately `lit` does not forward `$PYTHONPATH` to children processes, in
|
||||||
|
# particular the children it uses to do feature detection.
|
||||||
|
#
|
||||||
|
# This means that python deps we add to `checkDeps` (which the python
|
||||||
|
# interpreter is made aware of via `$PYTHONPATH` – populated by the python
|
||||||
|
# setup hook) are not picked up by `lit` which causes it to skip tests.
|
||||||
|
#
|
||||||
|
# Adding `python3.withPackages (ps: [ ... ])` to `checkDeps` also doesn't work
|
||||||
|
# because this package is shadowed in `$PATH` by the regular `python3`
|
||||||
|
# package.
|
||||||
|
#
|
||||||
|
# So, we "manually" assemble one python derivation for the package to depend
|
||||||
|
# on, taking into account whether checks are enabled or not:
|
||||||
|
python = if doCheck then
|
||||||
|
let
|
||||||
|
checkDeps = ps: with ps; [ psutil ];
|
||||||
|
in python3.withPackages checkDeps
|
||||||
|
else python3;
|
||||||
|
|
||||||
in stdenv.mkDerivation (rec {
|
in stdenv.mkDerivation (rec {
|
||||||
pname = "llvm";
|
pname = "llvm";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
@ -40,7 +65,7 @@ in stdenv.mkDerivation (rec {
|
||||||
|
|
||||||
outputs = [ "out" "lib" "dev" "python" ];
|
outputs = [ "out" "lib" "dev" "python" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python3 ]
|
nativeBuildInputs = [ cmake python ]
|
||||||
++ optionals enableManpages [ python3.pkgs.sphinx python3.pkgs.recommonmark ];
|
++ optionals enableManpages [ python3.pkgs.sphinx python3.pkgs.recommonmark ];
|
||||||
|
|
||||||
buildInputs = [ libxml2 libffi ]
|
buildInputs = [ libxml2 libffi ]
|
||||||
|
@ -217,8 +242,7 @@ in stdenv.mkDerivation (rec {
|
||||||
cp NATIVE/bin/llvm-config $dev/bin/llvm-config-native
|
cp NATIVE/bin/llvm-config $dev/bin/llvm-config-native
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = stdenv.isLinux && (!stdenv.isx86_32) && (!stdenv.hostPlatform.isMusl)
|
inherit doCheck;
|
||||||
&& (stdenv.hostPlatform == stdenv.buildPlatform);
|
|
||||||
|
|
||||||
checkTarget = "check-all";
|
checkTarget = "check-all";
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
, which
|
, which
|
||||||
, buildLlvmTools
|
, buildLlvmTools
|
||||||
, debugVersion ? false
|
, debugVersion ? false
|
||||||
|
, doCheck ? stdenv.isLinux && (!stdenv.isx86_32) && (!stdenv.hostPlatform.isMusl)
|
||||||
|
&& (stdenv.hostPlatform == stdenv.buildPlatform)
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
, enableSharedLibraries ? !stdenv.hostPlatform.isStatic
|
, enableSharedLibraries ? !stdenv.hostPlatform.isStatic
|
||||||
# broken for Ampere eMAG 8180 (c2.large.arm on Packet) #56245
|
# broken for Ampere eMAG 8180 (c2.large.arm on Packet) #56245
|
||||||
|
@ -32,6 +34,29 @@ let
|
||||||
shortVersion = with lib;
|
shortVersion = with lib;
|
||||||
concatStringsSep "." (take 1 (splitString "." release_version));
|
concatStringsSep "." (take 1 (splitString "." release_version));
|
||||||
|
|
||||||
|
# Ordinarily we would just the `doCheck` and `checkDeps` functionality
|
||||||
|
# `mkDerivation` gives us to manage our test dependencies (instead of breaking
|
||||||
|
# out `doCheck` as a package level attribute).
|
||||||
|
#
|
||||||
|
# Unfortunately `lit` does not forward `$PYTHONPATH` to children processes, in
|
||||||
|
# particular the children it uses to do feature detection.
|
||||||
|
#
|
||||||
|
# This means that python deps we add to `checkDeps` (which the python
|
||||||
|
# interpreter is made aware of via `$PYTHONPATH` – populated by the python
|
||||||
|
# setup hook) are not picked up by `lit` which causes it to skip tests.
|
||||||
|
#
|
||||||
|
# Adding `python3.withPackages (ps: [ ... ])` to `checkDeps` also doesn't work
|
||||||
|
# because this package is shadowed in `$PATH` by the regular `python3`
|
||||||
|
# package.
|
||||||
|
#
|
||||||
|
# So, we "manually" assemble one python derivation for the package to depend
|
||||||
|
# on, taking into account whether checks are enabled or not:
|
||||||
|
python = if doCheck then
|
||||||
|
let
|
||||||
|
checkDeps = ps: with ps; [ psutil ];
|
||||||
|
in python3.withPackages checkDeps
|
||||||
|
else python3;
|
||||||
|
|
||||||
in stdenv.mkDerivation (rec {
|
in stdenv.mkDerivation (rec {
|
||||||
pname = "llvm";
|
pname = "llvm";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
@ -50,7 +75,7 @@ in stdenv.mkDerivation (rec {
|
||||||
|
|
||||||
outputs = [ "out" "lib" "dev" "python" ];
|
outputs = [ "out" "lib" "dev" "python" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python3 ]
|
nativeBuildInputs = [ cmake python ]
|
||||||
++ optionals enableManpages [ python3.pkgs.sphinx python3.pkgs.recommonmark ];
|
++ optionals enableManpages [ python3.pkgs.sphinx python3.pkgs.recommonmark ];
|
||||||
|
|
||||||
buildInputs = [ libxml2 libffi ]
|
buildInputs = [ libxml2 libffi ]
|
||||||
|
@ -230,8 +255,7 @@ in stdenv.mkDerivation (rec {
|
||||||
cp NATIVE/bin/llvm-config $dev/bin/llvm-config-native
|
cp NATIVE/bin/llvm-config $dev/bin/llvm-config-native
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = stdenv.isLinux && (!stdenv.isx86_32) && (!stdenv.hostPlatform.isMusl)
|
inherit doCheck;
|
||||||
&& (stdenv.hostPlatform == stdenv.buildPlatform);
|
|
||||||
|
|
||||||
checkTarget = "check-all";
|
checkTarget = "check-all";
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,8 @@
|
||||||
, zlib
|
, zlib
|
||||||
, buildLlvmTools
|
, buildLlvmTools
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
|
, doCheck ? stdenv.isLinux && (!stdenv.isi686)
|
||||||
|
&& (stdenv.hostPlatform == stdenv.buildPlatform)
|
||||||
, debugVersion ? false
|
, debugVersion ? false
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
, enableSharedLibraries ? !stdenv.hostPlatform.isStatic
|
, enableSharedLibraries ? !stdenv.hostPlatform.isStatic
|
||||||
|
@ -26,6 +28,29 @@ let
|
||||||
versionSuffixes = with lib;
|
versionSuffixes = with lib;
|
||||||
let parts = splitVersion release_version; in
|
let parts = splitVersion release_version; in
|
||||||
imap (i: _: concatStringsSep "." (take i parts)) parts;
|
imap (i: _: concatStringsSep "." (take i parts)) parts;
|
||||||
|
|
||||||
|
# Ordinarily we would just the `doCheck` and `checkDeps` functionality
|
||||||
|
# `mkDerivation` gives us to manage our test dependencies (instead of breaking
|
||||||
|
# out `doCheck` as a package level attribute).
|
||||||
|
#
|
||||||
|
# Unfortunately `lit` does not forward `$PYTHONPATH` to children processes, in
|
||||||
|
# particular the children it uses to do feature detection.
|
||||||
|
#
|
||||||
|
# This means that python deps we add to `checkDeps` (which the python
|
||||||
|
# interpreter is made aware of via `$PYTHONPATH` – populated by the python
|
||||||
|
# setup hook) are not picked up by `lit` which causes it to skip tests.
|
||||||
|
#
|
||||||
|
# Adding `python3.withPackages (ps: [ ... ])` to `checkDeps` also doesn't work
|
||||||
|
# because this package is shadowed in `$PATH` by the regular `python3`
|
||||||
|
# package.
|
||||||
|
#
|
||||||
|
# So, we "manually" assemble one python derivation for the package to depend
|
||||||
|
# on, taking into account whether checks are enabled or not:
|
||||||
|
python = if doCheck then
|
||||||
|
let
|
||||||
|
checkDeps = ps: with ps; [ psutil ];
|
||||||
|
in python3.withPackages checkDeps
|
||||||
|
else python3;
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation (rec {
|
stdenv.mkDerivation (rec {
|
||||||
|
@ -46,7 +71,7 @@ stdenv.mkDerivation (rec {
|
||||||
|
|
||||||
outputs = [ "out" "lib" "dev" "python" ];
|
outputs = [ "out" "lib" "dev" "python" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python3 ]
|
nativeBuildInputs = [ cmake python ]
|
||||||
++ optional enableManpages python3.pkgs.sphinx;
|
++ optional enableManpages python3.pkgs.sphinx;
|
||||||
|
|
||||||
buildInputs = [ libxml2 libffi ];
|
buildInputs = [ libxml2 libffi ];
|
||||||
|
@ -227,8 +252,7 @@ stdenv.mkDerivation (rec {
|
||||||
cp NATIVE/bin/llvm-config $dev/bin/llvm-config-native
|
cp NATIVE/bin/llvm-config $dev/bin/llvm-config-native
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = stdenv.isLinux && (!stdenv.isi686)
|
inherit doCheck;
|
||||||
&& (stdenv.hostPlatform == stdenv.buildPlatform);
|
|
||||||
|
|
||||||
checkTarget = "check-all";
|
checkTarget = "check-all";
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
, zlib
|
, zlib
|
||||||
, buildLlvmTools
|
, buildLlvmTools
|
||||||
, debugVersion ? false
|
, debugVersion ? false
|
||||||
|
, doCheck ? stdenv.isLinux && (!stdenv.isx86_32)
|
||||||
|
&& (stdenv.hostPlatform == stdenv.buildPlatform)
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
, enableSharedLibraries ? !stdenv.hostPlatform.isStatic
|
, enableSharedLibraries ? !stdenv.hostPlatform.isStatic
|
||||||
# broken for Ampere eMAG 8180 (c2.large.arm on Packet) #56245
|
# broken for Ampere eMAG 8180 (c2.large.arm on Packet) #56245
|
||||||
|
@ -31,6 +33,29 @@ let
|
||||||
let parts = splitVersion release_version; in
|
let parts = splitVersion release_version; in
|
||||||
imap (i: _: concatStringsSep "." (take i parts)) parts;
|
imap (i: _: concatStringsSep "." (take i parts)) parts;
|
||||||
|
|
||||||
|
# Ordinarily we would just the `doCheck` and `checkDeps` functionality
|
||||||
|
# `mkDerivation` gives us to manage our test dependencies (instead of breaking
|
||||||
|
# out `doCheck` as a package level attribute).
|
||||||
|
#
|
||||||
|
# Unfortunately `lit` does not forward `$PYTHONPATH` to children processes, in
|
||||||
|
# particular the children it uses to do feature detection.
|
||||||
|
#
|
||||||
|
# This means that python deps we add to `checkDeps` (which the python
|
||||||
|
# interpreter is made aware of via `$PYTHONPATH` – populated by the python
|
||||||
|
# setup hook) are not picked up by `lit` which causes it to skip tests.
|
||||||
|
#
|
||||||
|
# Adding `python3.withPackages (ps: [ ... ])` to `checkDeps` also doesn't work
|
||||||
|
# because this package is shadowed in `$PATH` by the regular `python3`
|
||||||
|
# package.
|
||||||
|
#
|
||||||
|
# So, we "manually" assemble one python derivation for the package to depend
|
||||||
|
# on, taking into account whether checks are enabled or not:
|
||||||
|
python = if doCheck then
|
||||||
|
let
|
||||||
|
checkDeps = ps: with ps; [ psutil ];
|
||||||
|
in python3.withPackages checkDeps
|
||||||
|
else python3;
|
||||||
|
|
||||||
in stdenv.mkDerivation (rec {
|
in stdenv.mkDerivation (rec {
|
||||||
pname = "llvm";
|
pname = "llvm";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
@ -49,7 +74,7 @@ in stdenv.mkDerivation (rec {
|
||||||
|
|
||||||
outputs = [ "out" "lib" "dev" "python" ];
|
outputs = [ "out" "lib" "dev" "python" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python3 ]
|
nativeBuildInputs = [ cmake python ]
|
||||||
++ optional enableManpages python3.pkgs.sphinx;
|
++ optional enableManpages python3.pkgs.sphinx;
|
||||||
|
|
||||||
buildInputs = [ libxml2 libffi ]
|
buildInputs = [ libxml2 libffi ]
|
||||||
|
@ -245,8 +270,7 @@ in stdenv.mkDerivation (rec {
|
||||||
cp NATIVE/bin/llvm-config $dev/bin/llvm-config-native
|
cp NATIVE/bin/llvm-config $dev/bin/llvm-config-native
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = stdenv.isLinux && (!stdenv.isx86_32)
|
inherit doCheck;
|
||||||
&& (stdenv.hostPlatform == stdenv.buildPlatform);
|
|
||||||
|
|
||||||
checkTarget = "check-all";
|
checkTarget = "check-all";
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
, zlib
|
, zlib
|
||||||
, buildLlvmTools
|
, buildLlvmTools
|
||||||
, debugVersion ? false
|
, debugVersion ? false
|
||||||
|
, doCheck ? stdenv.isLinux && (!stdenv.isx86_32)
|
||||||
|
&& (stdenv.hostPlatform == stdenv.buildPlatform)
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
, enableSharedLibraries ? !stdenv.hostPlatform.isStatic
|
, enableSharedLibraries ? !stdenv.hostPlatform.isStatic
|
||||||
# broken for Ampere eMAG 8180 (c2.large.arm on Packet) #56245
|
# broken for Ampere eMAG 8180 (c2.large.arm on Packet) #56245
|
||||||
|
@ -30,6 +32,29 @@ let
|
||||||
shortVersion = with lib;
|
shortVersion = with lib;
|
||||||
concatStringsSep "." (take 1 (splitVersion release_version));
|
concatStringsSep "." (take 1 (splitVersion release_version));
|
||||||
|
|
||||||
|
# Ordinarily we would just the `doCheck` and `checkDeps` functionality
|
||||||
|
# `mkDerivation` gives us to manage our test dependencies (instead of breaking
|
||||||
|
# out `doCheck` as a package level attribute).
|
||||||
|
#
|
||||||
|
# Unfortunately `lit` does not forward `$PYTHONPATH` to children processes, in
|
||||||
|
# particular the children it uses to do feature detection.
|
||||||
|
#
|
||||||
|
# This means that python deps we add to `checkDeps` (which the python
|
||||||
|
# interpreter is made aware of via `$PYTHONPATH` – populated by the python
|
||||||
|
# setup hook) are not picked up by `lit` which causes it to skip tests.
|
||||||
|
#
|
||||||
|
# Adding `python3.withPackages (ps: [ ... ])` to `checkDeps` also doesn't work
|
||||||
|
# because this package is shadowed in `$PATH` by the regular `python3`
|
||||||
|
# package.
|
||||||
|
#
|
||||||
|
# So, we "manually" assemble one python derivation for the package to depend
|
||||||
|
# on, taking into account whether checks are enabled or not:
|
||||||
|
python = if doCheck then
|
||||||
|
let
|
||||||
|
checkDeps = ps: with ps; [ psutil ];
|
||||||
|
in python3.withPackages checkDeps
|
||||||
|
else python3;
|
||||||
|
|
||||||
in stdenv.mkDerivation (rec {
|
in stdenv.mkDerivation (rec {
|
||||||
pname = "llvm";
|
pname = "llvm";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
@ -48,7 +73,7 @@ in stdenv.mkDerivation (rec {
|
||||||
|
|
||||||
outputs = [ "out" "lib" "dev" "python" ];
|
outputs = [ "out" "lib" "dev" "python" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python3 ]
|
nativeBuildInputs = [ cmake python ]
|
||||||
++ optionals enableManpages [ python3.pkgs.sphinx python3.pkgs.recommonmark ];
|
++ optionals enableManpages [ python3.pkgs.sphinx python3.pkgs.recommonmark ];
|
||||||
|
|
||||||
buildInputs = [ libxml2 libffi ]
|
buildInputs = [ libxml2 libffi ]
|
||||||
|
@ -237,8 +262,7 @@ in stdenv.mkDerivation (rec {
|
||||||
cp NATIVE/bin/llvm-config $dev/bin/llvm-config-native
|
cp NATIVE/bin/llvm-config $dev/bin/llvm-config-native
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = stdenv.isLinux && (!stdenv.isx86_32)
|
inherit doCheck;
|
||||||
&& (stdenv.hostPlatform == stdenv.buildPlatform);
|
|
||||||
|
|
||||||
checkTarget = "check-all";
|
checkTarget = "check-all";
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
, zlib
|
, zlib
|
||||||
, buildLlvmTools
|
, buildLlvmTools
|
||||||
, debugVersion ? false
|
, debugVersion ? false
|
||||||
|
, doCheck ? stdenv.isLinux && (!stdenv.isx86_32) && (!stdenv.hostPlatform.isRiscV)
|
||||||
|
&& (stdenv.hostPlatform == stdenv.buildPlatform)
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
, enableSharedLibraries ? !stdenv.hostPlatform.isStatic
|
, enableSharedLibraries ? !stdenv.hostPlatform.isStatic
|
||||||
# broken for Ampere eMAG 8180 (c2.large.arm on Packet) #56245
|
# broken for Ampere eMAG 8180 (c2.large.arm on Packet) #56245
|
||||||
|
@ -30,6 +32,29 @@ let
|
||||||
shortVersion = with lib;
|
shortVersion = with lib;
|
||||||
concatStringsSep "." (take 1 (splitString "." release_version));
|
concatStringsSep "." (take 1 (splitString "." release_version));
|
||||||
|
|
||||||
|
# Ordinarily we would just the `doCheck` and `checkDeps` functionality
|
||||||
|
# `mkDerivation` gives us to manage our test dependencies (instead of breaking
|
||||||
|
# out `doCheck` as a package level attribute).
|
||||||
|
#
|
||||||
|
# Unfortunately `lit` does not forward `$PYTHONPATH` to children processes, in
|
||||||
|
# particular the children it uses to do feature detection.
|
||||||
|
#
|
||||||
|
# This means that python deps we add to `checkDeps` (which the python
|
||||||
|
# interpreter is made aware of via `$PYTHONPATH` – populated by the python
|
||||||
|
# setup hook) are not picked up by `lit` which causes it to skip tests.
|
||||||
|
#
|
||||||
|
# Adding `python3.withPackages (ps: [ ... ])` to `checkDeps` also doesn't work
|
||||||
|
# because this package is shadowed in `$PATH` by the regular `python3`
|
||||||
|
# package.
|
||||||
|
#
|
||||||
|
# So, we "manually" assemble one python derivation for the package to depend
|
||||||
|
# on, taking into account whether checks are enabled or not:
|
||||||
|
python = if doCheck then
|
||||||
|
let
|
||||||
|
checkDeps = ps: with ps; [ psutil ];
|
||||||
|
in python3.withPackages checkDeps
|
||||||
|
else python3;
|
||||||
|
|
||||||
in stdenv.mkDerivation (rec {
|
in stdenv.mkDerivation (rec {
|
||||||
pname = "llvm";
|
pname = "llvm";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
@ -48,7 +73,7 @@ in stdenv.mkDerivation (rec {
|
||||||
|
|
||||||
outputs = [ "out" "lib" "dev" "python" ];
|
outputs = [ "out" "lib" "dev" "python" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python3 ]
|
nativeBuildInputs = [ cmake python ]
|
||||||
++ optionals enableManpages [ python3.pkgs.sphinx python3.pkgs.recommonmark ];
|
++ optionals enableManpages [ python3.pkgs.sphinx python3.pkgs.recommonmark ];
|
||||||
|
|
||||||
buildInputs = [ libxml2 libffi ]
|
buildInputs = [ libxml2 libffi ]
|
||||||
|
@ -252,8 +277,7 @@ in stdenv.mkDerivation (rec {
|
||||||
cp NATIVE/bin/llvm-config $dev/bin/llvm-config-native
|
cp NATIVE/bin/llvm-config $dev/bin/llvm-config-native
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = stdenv.isLinux && (!stdenv.isx86_32) && (!stdenv.hostPlatform.isRiscV)
|
inherit doCheck;
|
||||||
&& (stdenv.hostPlatform == stdenv.buildPlatform);
|
|
||||||
|
|
||||||
checkTarget = "check-all";
|
checkTarget = "check-all";
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
, which
|
, which
|
||||||
, buildLlvmTools
|
, buildLlvmTools
|
||||||
, debugVersion ? false
|
, debugVersion ? false
|
||||||
|
, doCheck ? stdenv.isLinux && (!stdenv.isx86_32) && (!stdenv.hostPlatform.isMusl)
|
||||||
|
&& (stdenv.hostPlatform == stdenv.buildPlatform)
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
, enableSharedLibraries ? !stdenv.hostPlatform.isStatic
|
, enableSharedLibraries ? !stdenv.hostPlatform.isStatic
|
||||||
, enablePFM ? !(stdenv.isDarwin
|
, enablePFM ? !(stdenv.isDarwin
|
||||||
|
@ -34,6 +36,29 @@ let
|
||||||
shortVersion = with lib;
|
shortVersion = with lib;
|
||||||
concatStringsSep "." (take 1 (splitString "." release_version));
|
concatStringsSep "." (take 1 (splitString "." release_version));
|
||||||
|
|
||||||
|
# Ordinarily we would just the `doCheck` and `checkDeps` functionality
|
||||||
|
# `mkDerivation` gives us to manage our test dependencies (instead of breaking
|
||||||
|
# out `doCheck` as a package level attribute).
|
||||||
|
#
|
||||||
|
# Unfortunately `lit` does not forward `$PYTHONPATH` to children processes, in
|
||||||
|
# particular the children it uses to do feature detection.
|
||||||
|
#
|
||||||
|
# This means that python deps we add to `checkDeps` (which the python
|
||||||
|
# interpreter is made aware of via `$PYTHONPATH` – populated by the python
|
||||||
|
# setup hook) are not picked up by `lit` which causes it to skip tests.
|
||||||
|
#
|
||||||
|
# Adding `python3.withPackages (ps: [ ... ])` to `checkDeps` also doesn't work
|
||||||
|
# because this package is shadowed in `$PATH` by the regular `python3`
|
||||||
|
# package.
|
||||||
|
#
|
||||||
|
# So, we "manually" assemble one python derivation for the package to depend
|
||||||
|
# on, taking into account whether checks are enabled or not:
|
||||||
|
python = if doCheck then
|
||||||
|
let
|
||||||
|
checkDeps = ps: with ps; [ psutil ];
|
||||||
|
in python3.withPackages checkDeps
|
||||||
|
else python3;
|
||||||
|
|
||||||
in stdenv.mkDerivation (rec {
|
in stdenv.mkDerivation (rec {
|
||||||
pname = "llvm";
|
pname = "llvm";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
@ -52,7 +77,7 @@ in stdenv.mkDerivation (rec {
|
||||||
|
|
||||||
outputs = [ "out" "lib" "dev" "python" ];
|
outputs = [ "out" "lib" "dev" "python" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ninja python3 ]
|
nativeBuildInputs = [ cmake ninja python ]
|
||||||
++ optionals enableManpages [ python3.pkgs.sphinx python3.pkgs.recommonmark ];
|
++ optionals enableManpages [ python3.pkgs.sphinx python3.pkgs.recommonmark ];
|
||||||
|
|
||||||
buildInputs = [ libxml2 libffi ]
|
buildInputs = [ libxml2 libffi ]
|
||||||
|
@ -217,8 +242,7 @@ in stdenv.mkDerivation (rec {
|
||||||
cp NATIVE/bin/llvm-config $dev/bin/llvm-config-native
|
cp NATIVE/bin/llvm-config $dev/bin/llvm-config-native
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = stdenv.isLinux && (!stdenv.isx86_32) && (!stdenv.hostPlatform.isMusl)
|
inherit doCheck;
|
||||||
&& (stdenv.hostPlatform == stdenv.buildPlatform);
|
|
||||||
|
|
||||||
checkTarget = "check-all";
|
checkTarget = "check-all";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue