aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorJade Lovelace <lix@jade.fyi>2024-07-23 22:53:56 +0200
committerJade Lovelace <lix@jade.fyi>2024-07-31 14:13:39 -0700
commitb5c6ce7a537d91ee22d6876ba0166259da2ac3c0 (patch)
tree9b12cbb1933db0fbe5c099c94d5b3cfc62c369b0 /flake.nix
parente51263057f21e77602481d6a6d826ff8cc0c1db0 (diff)
Add -Werror CI job
We should cause CLs that introduce compiler warnings to fail CI. Sadly this will only cover Clang, but it will cover Clang for free, so it's truly impossible to say if it's bad or not. Change-Id: I45ca20d77251af9671d5cbe0d29cb08c5f1d03c2
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 9a3087c4b..440320afa 100644
--- a/flake.nix
+++ b/flake.nix
@@ -283,6 +283,10 @@
"address"
"undefined"
];
+ # it is very hard to make *every* CI build use this option such
+ # that we don't wind up building Lix twice, so we do it here where
+ # we are already doing so.
+ werror = true;
};
# Make sure that nix-env still produces the exact same result