Skip to content

Commit

Permalink
Merge pull request #337 from NixOS/ci
Browse files Browse the repository at this point in the history
Fix build-sanitized-clang.aarch64-linux build
  • Loading branch information
Mic92 committed Nov 27, 2021
2 parents b7e64b9 + 3165292 commit 0d3df24
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 10 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,16 @@
};

coverage =
pkgs.releaseTools.coverageAnalysis {
(pkgs.releaseTools.coverageAnalysis {
name = "patchelf-coverage";
src = self.hydraJobs.tarball;
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-sanitized = forAllSystems (system: nixpkgsFor.${system}.patchelf-new.overrideAttrs (old: {
Expand All @@ -57,8 +62,9 @@
# our cc wrapper arguments
CFLAGS = "-Werror -Wno-unused-command-line-argument";
}));
build-sanitized-clang = forAllSystems (system: self.hydraJobs.build-sanitized.${system}.override {
stdenv = pkgs.libcxxStdenv;
# 32-bit clangStdenv seems broken in nixpkgs
build-sanitized-clang = nixpkgs.lib.genAttrs [ "x86_64-linux" "aarch64-linux" ] (system: self.hydraJobs.build-sanitized.${system}.override {
stdenv = nixpkgsFor.${system}.libcxxStdenv;
});

release = pkgs.releaseTools.aggregate
Expand All @@ -70,7 +76,6 @@
self.hydraJobs.build-sanitized.x86_64-linux
self.hydraJobs.build-sanitized.i686-linux
self.hydraJobs.build-sanitized-clang.x86_64-linux
self.hydraJobs.build-sanitized-clang.i686-linux
];
meta.description = "Release-critical builds";
};
Expand Down

0 comments on commit 0d3df24

Please sign in to comment.