From fe14e7c522bb2f01c9d948072e15377403bfc270 Mon Sep 17 00:00:00 2001 From: Corbin Date: Wed, 19 Apr 2023 10:53:42 -0700 Subject: [PATCH] Re-add dropped Darwin-only flag. Whoops! I didn't notice this at first because I'm not on Darwin. Can somebody test this, please? --- flake.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flake.nix b/flake.nix index 6d108d7c5..a353b8c3b 100644 --- a/flake.nix +++ b/flake.nix @@ -21,6 +21,9 @@ buildInputs = with pkgs; lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Accelerate ]; + makeFlags = with pkgs; lib.optionals (system == "aarch64-darwin") [ + "CFLAGS=-D__ARM_FEATURE_DOTPROD=1" + ]; buildPhase = '' make main quantize quantize-stats perplexity embedding vdot libllama.so '';