Skip to content

Commit

Permalink
build: replace use of nproc
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Nov 10, 2023
1 parent 0527c08 commit 60f0698
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
BUILD_DIR=build
BUILDTYPE?=MinSizeRel
JOBS?=$(shell getconf _NPROCESSORS_ONLN)

QJSC=$(BUILD_DIR)/qjsc
STDLIB_MODULES=$(wildcard src/js/stdlib/*.js)

all: build

build: $(BUILD_DIR)/Makefile
cmake --build $(BUILD_DIR) -j $(shell nproc)
cmake --build $(BUILD_DIR) -j $(JOBS)

$(BUILD_DIR)/qjsc: $(BUILD_DIR)/Makefile
cmake --build $(BUILD_DIR) --target qjsc -j $(shell nproc)
cmake --build $(BUILD_DIR) --target qjsc -j $(JOBS)

src/bundles/js/core/polyfills.js: src/js/polyfills/*.js
npx esbuild src/js/polyfills/index.js \
Expand Down

0 comments on commit 60f0698

Please sign in to comment.