From c761e1de4dcf87b9106e4f70cb89217a81aa2f9f Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 15 Nov 2025 16:27:34 +0900 Subject: 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 --- test/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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 -- cgit v1.3.1