summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2024-02-14 17:56:30 +0100
committerLinnnus <[email protected]>2024-02-14 17:56:30 +0100
commitcfb648daef74f695e42e3314c05296a72168860c (patch)
treea4631fcdbc20bccb4640a3fa2484606f44cd2bc4 /Makefile
parent2b11289379b5ba3d6d67b88211df0862f4b92ebd (diff)
build: Use stdenv from llvmPackages
This patch updates the flake to use llvmPackages.stdenv rather than the default pkgs.stdenv. This fixes an issue on MacOS where the ASAN runtime library isn't found. I have no idea why.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 90d321d..7520811 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
.POSIX:
.PHONY: all install uninstall clean
-CC := cc
+CC ?= cc
CFLAGS := -W -O $(shell pkg-config --cflags libgit2)
CFLAGS += -g3 -O0 -fsanitize=address,undefined -fsanitize-trap
CFLAGS += -Wall -Wextra -Wconversion -Wdouble-promotion \