makeBinaryWrapper: add comment
This commit is contained in:
parent
3c77d361b5
commit
3e385d9a82
2 changed files with 3 additions and 3 deletions
|
@ -15,9 +15,7 @@ makeSetupHook {
|
|||
++ lib.optional (stdenv.isDarwin && stdenv.isAarch64) darwin.cctools;
|
||||
|
||||
substitutions = {
|
||||
cc = let
|
||||
san = lib.escapeShellArgs (map (s: "-fsanitize=${s}") sanitizers);
|
||||
in "${cc}/bin/cc ${san}";
|
||||
cc = "${cc}/bin/cc ${lib.escapeShellArgs (map (s: "-fsanitize=${s}") sanitizers)}";
|
||||
|
||||
# Extract the function call used to create a binary wrapper from its embedded docstring
|
||||
passthru.extractCmd = writeShellScript "extract-binary-wrapper-cmd" ''
|
||||
|
|
|
@ -74,6 +74,8 @@ with pkgs;
|
|||
makeWrapper = callPackage ./make-wrapper { };
|
||||
makeBinaryWrapper = callPackage ./make-binary-wrapper {
|
||||
makeBinaryWrapper = pkgs.makeBinaryWrapper.override {
|
||||
# Enable sanitizers in the tests only, to avoid the performance cost in regular usage.
|
||||
# The sanitizers cause errors on aarch64-darwin, see https://github.com/NixOS/nixpkgs/pull/150079#issuecomment-994132734
|
||||
sanitizers = pkgs.lib.optionals (! (pkgs.stdenv.isDarwin && pkgs.stdenv.isAarch64))
|
||||
[ "undefined" "address" ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue