This commit is contained in:
pika 2025-05-16 11:10:50 +02:00
parent 07c9f93fc6
commit 4d7a4a6a90

View file

@ -154,9 +154,10 @@ cloneAndBuildUtils() {
} }
build() { build() {
local cores="$(nproc 2>/dev/null || getconf _NPROCESSORS_CONF)"
echo_info "Building hyprlock" echo_info "Building hyprlock"
run cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -S . -B ./build run cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -S . -B ./build
run cmake --build ./build --config Release --target hyprlock -j$(nproc 2>/dev/null || getconf _NPROCESSORS_CONF) run cmake --build ./build --config Release --target hyprlock -j"$cores"
} }
cloneAndBuildLock() { cloneAndBuildLock() {