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.
This commit is contained in:
Tobias Bergkvist 2021-12-16 21:23:16 +01:00
parent 228d451e03
commit d5435990b0

View file

@ -703,7 +703,7 @@ with pkgs;
in
lib.makeOverridable f {
cc = stdenv.cc;
sanitizers = [ "undefined" "address" ];
sanitizers = [ ];
};
makeModulesClosure = { kernel, firmware, rootModules, allowMissing ? false }: