File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments