aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/default.nix
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-11-15 16:27:34 +0900
committerOphestra <cat@gensokyo.uk>2025-11-15 16:36:36 +0900
commitc761e1de4dcf87b9106e4f70cb89217a81aa2f9f (patch)
tree90f01a31db350353a98d563f4b898eba4f919b90 /test/default.nix
parenta91920310d20e1fc472dea044fce8fd9438835df (diff)
nix: build with clang
Clang is better than gcc in various ways. This also pulls in clang-format which is very helpful. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test/default.nix')
-rw-r--r--test/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/default.nix b/test/default.nix
index 037d7dee..edca9fdc 100644
--- a/test/default.nix
+++ b/test/default.nix
@@ -44,7 +44,7 @@ nixosTest {
cd ${self.packages.${system}.hakurei.src}
${fhs}/bin/hakurei-fhs -c \
- 'go test ${if withRace then "-race" else "-count 16"} ./...' \
+ 'CC="clang -O3 -Werror" go test ${if withRace then "-race" else "-count 16"} ./...' \
&> /tmp/hakurei-test.log && \
touch /tmp/hakurei-test-ok
touch /tmp/hakurei-test-done