Skip to content

Commit e547d50

Browse files
committed
Fix Makefile to use single quotes for architecture options in LLAMA_OPTIONS
1 parent 103a45a commit e547d50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ ifeq ($(OMIT_LOCAL_ENGINE),0)
181181
LLAMA_OPTIONS += -DCMAKE_OSX_ARCHITECTURES="arm64"
182182
LDFLAGS += -arch arm64
183183
else
184-
LLAMA_OPTIONS += -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"
184+
LLAMA_OPTIONS += '-DCMAKE_OSX_ARCHITECTURES=x86_64;arm64'
185185
LDFLAGS += -arch arm64 -arch x86_64
186186
endif
187187
else ifeq ($(PLATFORM),linux)
@@ -227,7 +227,7 @@ ifeq ($(OMIT_LOCAL_ENGINE),0)
227227
LLAMA_OPTIONS += -DGGML_NATIVE=OFF -DGGML_METAL=ON -DGGML_ACCELERATE=ON -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=Apple
228228
endif
229229
else ifeq ($(PLATFORM),ios-sim)
230-
LLAMA_OPTIONS += -DGGML_OPENMP=OFF -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphonesimulator -DCMAKE_OSX_DEPLOYMENT_TARGET=14.0 -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"
230+
LLAMA_OPTIONS += -DGGML_OPENMP=OFF -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphonesimulator -DCMAKE_OSX_DEPLOYMENT_TARGET=14.0 '-DCMAKE_OSX_ARCHITECTURES=x86_64;arm64'
231231
# Default iOS simulator build uses Metal + Accelerate + BLAS when LLAMA is empty
232232
ifeq ($(LLAMA),)
233233
LLAMA_OPTIONS += -DGGML_NATIVE=OFF -DGGML_METAL=ON -DGGML_ACCELERATE=ON -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=Apple

0 commit comments

Comments
 (0)