Skip to content

Commit 795e606

Browse files
committed
Update Makefile to use available CPU cores for building libraries
1 parent 354dbda commit 795e606

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,10 @@ test: $(TARGET)
127127

128128
# Build all libraries at once using one CMake call
129129
build/libs.stamp:
130-
@echo "Building llama.cpp libraries with jobs: $(JOBS)..."
131130
#-DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"
132131
cd $(BUILD_DIR) && \
133132
cmake -B lib -DBUILD_SHARED_LIBS=OFF ../$(LLAMA_DIR) && \
134-
cmake --build lib --config Release -- -j$(JOBS)
133+
cmake --build lib --config Release -- -j$(CPUS)
135134
touch $@
136135

137136
$(LIBS): build/libs.stamp

0 commit comments

Comments
 (0)