From 4b19686109b0962ea68dfe58feafffe3bac9c202 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 1 Oct 2026 22:24:09 +0900 Subject: cmd/dist: optionally build with race instrument This is mostly useful for the integration test suites. Signed-off-by: Ophestra --- internal/rosa/package/hakurei.az | 47 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to 'internal/rosa/package/hakurei.az') diff --git a/internal/rosa/package/hakurei.az b/internal/rosa/package/hakurei.az index f8b03b74..596eb956 100644 --- a/internal/rosa/package/hakurei.az +++ b/internal/rosa/package/hakurei.az @@ -127,6 +127,53 @@ DESTDIR=/work "./${NAME}.sh" runtime = nil; } +package hakurei-dist-race { + description = "low-level userspace tooling for Rosa OS (distribution tarball with race instrument)"; + website = "https://hakurei.app"; + + source = hakurei-source; + enterSource = true; + writable = true; + chmod = true; + + env = [ + "CGO_ENABLED=1", + "GOCACHE=/tmp/gocache", + "CC=clang -O3 -Werror", + "HAKUREI_RACE=1", + ]; + + exec = generic { + chdir = false; + build = ` +NAME=make`; + check = ` +NAME=all`; + install = ` +DESTDIR=/work "./${NAME}.sh" +`; + }; + + tools = [ + go, + pkgconf, + net-tools, + acl, + ]; + + inputs = [ + libseccomp, + acl, + fuse, + xcb, + wayland, + wayland-protocols, + kernel-headers, + ]; + + runtime = nil; +} + package earlyinit { description = "Rosa OS initramfs init program"; exclude = true; -- cgit v1.3.1