mirror of
https://github.com/NixOS/patchelf.git
synced 2025-10-19 19:53:19 +08:00
fix coverage build
This commit is contained in:
@@ -44,11 +44,16 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
coverage =
|
coverage =
|
||||||
pkgs.releaseTools.coverageAnalysis {
|
(pkgs.releaseTools.coverageAnalysis {
|
||||||
name = "patchelf-coverage";
|
name = "patchelf-coverage";
|
||||||
src = self.hydraJobs.tarball;
|
src = self.hydraJobs.tarball;
|
||||||
lcovFilter = ["*/tests/*"];
|
lcovFilter = ["*/tests/*"];
|
||||||
};
|
}).overrideAttrs (old: {
|
||||||
|
preCheck = ''
|
||||||
|
# coverage cflag breaks this target
|
||||||
|
NIX_CFLAGS_COMPILE=''${NIX_CFLAGS_COMPILE//--coverage} make -C tests phdr-corruption.so
|
||||||
|
'';
|
||||||
|
});
|
||||||
|
|
||||||
build = forAllSystems (system: nixpkgsFor.${system}.patchelf-new);
|
build = forAllSystems (system: nixpkgsFor.${system}.patchelf-new);
|
||||||
build-sanitized = forAllSystems (system: nixpkgsFor.${system}.patchelf-new.overrideAttrs (old: {
|
build-sanitized = forAllSystems (system: nixpkgsFor.${system}.patchelf-new.overrideAttrs (old: {
|
||||||
|
Reference in New Issue
Block a user