linux: disable WERROR by default
gcc update frequently breaks most recent kernel releases due to blanket -Werror flag. Let's avoid -Werror in a default build to ease kernel and gcc maintenance.
This commit is contained in:
parent
525ba38f95
commit
fea73bfd63
|
@ -917,6 +917,9 @@ let
|
|||
TASK_DELAY_ACCT = yes;
|
||||
TASK_XACCT = yes;
|
||||
TASK_IO_ACCOUNTING = yes;
|
||||
|
||||
# Fresh toolchains frequently break -Werror build for minor issues.
|
||||
WERROR = whenAtLeast "5.15" no;
|
||||
} // optionalAttrs (stdenv.hostPlatform.system == "x86_64-linux" || stdenv.hostPlatform.system == "aarch64-linux") {
|
||||
# Enable CPU/memory hotplug support
|
||||
# Allows you to dynamically add & remove CPUs/memory to a VM client running NixOS without requiring a reboot
|
||||
|
|
Loading…
Reference in a new issue