armips: build with Clang instead of GCC 10, run tests (#412719)
This commit is contained in:
commit
7f75fa3b4b
@ -16,6 +16,11 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "sha256-L+Uxww/WtvDJn1xZqoqA6Pkzq/98sy1qTxZbv6eEjbA=";
|
sha256 = "sha256-L+Uxww/WtvDJn1xZqoqA6Pkzq/98sy1qTxZbv6eEjbA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace CMakeLists.txt \
|
||||||
|
--replace-fail c++11 c++17
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
@ -27,6 +32,14 @@ stdenv.mkDerivation rec {
|
|||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
runHook preCheck
|
||||||
|
./armipstests ..
|
||||||
|
runHook postCheck
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/Kingcom/armips";
|
homepage = "https://github.com/Kingcom/armips";
|
||||||
description = "Assembler for various ARM and MIPS platforms";
|
description = "Assembler for various ARM and MIPS platforms";
|
@ -4845,8 +4845,8 @@ with pkgs;
|
|||||||
jdk = jdk8;
|
jdk = jdk8;
|
||||||
};
|
};
|
||||||
|
|
||||||
armips = callPackage ../development/compilers/armips {
|
armips = callPackage ../by-name/ar/armips/package.nix {
|
||||||
stdenv = gcc10Stdenv;
|
stdenv = clangStdenv;
|
||||||
};
|
};
|
||||||
|
|
||||||
ballerina = callPackage ../development/compilers/ballerina {
|
ballerina = callPackage ../development/compilers/ballerina {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user