Skip to content

Commit de75a18

Browse files
committed
packaging: Add buildWithSanitizers to hydraJobs
1 parent a491173 commit de75a18

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

packaging/hydra.nix

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,27 @@ in
158158
in
159159
forAllPackages (pkgName: forAllSystems (system: components.${system}.${pkgName}));
160160

161+
buildWithSanitizers =
162+
let
163+
components = forAllSystems (
164+
system:
165+
let
166+
pkgs = nixpkgsFor.${system}.native;
167+
in
168+
pkgs.nixComponents2.overrideScope (
169+
self: super: {
170+
# Boost coroutines fail with ASAN on darwin.
171+
withASan = !pkgs.stdenv.buildPlatform.isDarwin;
172+
withUBSan = true;
173+
nix-expr = super.nix-expr.override { enableGC = false; };
174+
# Unclear how to make Perl bindings work with a dynamically linked ASAN.
175+
nix-perl-bindings = null;
176+
}
177+
)
178+
);
179+
in
180+
forAllPackages (pkgName: forAllSystems (system: components.${system}.${pkgName}));
181+
161182
buildNoTests = forAllSystems (system: nixpkgsFor.${system}.native.nixComponents2.nix-cli);
162183

163184
# Toggles some settings for better coverage. Windows needs these

0 commit comments

Comments
 (0)