From cfb648daef74f695e42e3314c05296a72168860c Mon Sep 17 00:00:00 2001 From: Linnnus Date: Wed, 14 Feb 2024 17:56:30 +0100 Subject: 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. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') 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 \ -- cgit v1.2.3