summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-17 21:00:43 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-17 21:00:43 +0000
commit16d50d42daf09ac2f60ec009c2d2fe92c1fe7928 (patch)
tree642982ca5ad5e3059af8b22a6548a996591806bc
parentdcdbd5eda1032d0e4be4b4b1b801271e02ae5985 (diff)
util/nvmutil: default to clang on make-hell
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--util/nvmutil/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/nvmutil/Makefile b/util/nvmutil/Makefile
index fa1d0b0c..6488ca43 100644
--- a/util/nvmutil/Makefile
+++ b/util/nvmutil/Makefile
@@ -3,6 +3,8 @@
# Copyright (c) 2023 Riku Viitanen <riku.viitanen@protonmail.com>
CC?=cc
+HELLCC?=clang
+
CFLAGS?=
LDFLAGS?=
DESTDIR?=
@@ -36,7 +38,7 @@ strict: $(PROG).c
# clang-only extreme warnings (not portable)
hell: $(PROG).c
- $(CC) $(HELLFLAGS) $(PROG).c -o $(PROG) $(LDFLAGS)
+ $(HELLCC) $(HELLFLAGS) $(PROG).c -o $(PROG) $(LDFLAGS)
install: $(PROG)
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin