From d5435990b003a1c5279beaa9bdda5b5dd9724124 Mon Sep 17 00:00:00 2001 From: Tobias Bergkvist Date: Thu, 16 Dec 2021 21:23:16 +0100 Subject: [PATCH] makeBinaryWrapper: Disable sanitizers by default outside of tests Although sanitizers can catch and prevent undefined behaviour during runtime, it has a significant impact on performance. They also cause issues on macOS where they can make compilation fail. The future goal is to instead utilize static analysis to prevent undefined behaviour as makeBinaryWrapper evolves. --- pkgs/top-level/all-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5f0beb6df04..b9645f975b3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -703,7 +703,7 @@ with pkgs; in lib.makeOverridable f { cc = stdenv.cc; - sanitizers = [ "undefined" "address" ]; + sanitizers = [ ]; }; makeModulesClosure = { kernel, firmware, rootModules, allowMissing ? false }: