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:
parent
228d451e03
commit
d5435990b0
|
@ -703,7 +703,7 @@ with pkgs;
|
||||||
in
|
in
|
||||||
lib.makeOverridable f {
|
lib.makeOverridable f {
|
||||||
cc = stdenv.cc;
|
cc = stdenv.cc;
|
||||||
sanitizers = [ "undefined" "address" ];
|
sanitizers = [ ];
|
||||||
};
|
};
|
||||||
|
|
||||||
makeModulesClosure = { kernel, firmware, rootModules, allowMissing ? false }:
|
makeModulesClosure = { kernel, firmware, rootModules, allowMissing ? false }:
|
||||||
|
|
Loading…
Reference in a new issue