[Misc] use parallel build for cmake in sgl-kernel (#5919)

This commit is contained in:
PGFLMG
2025-04-30 23:56:46 +08:00
committed by GitHub
parent 3cff963335
commit 3ddf5b9d61
2 changed files with 43 additions and 35 deletions

View File

@@ -26,7 +26,7 @@ install: submodule ## Install package in development mode
@pip install -e . --no-build-isolation
build: install-deps submodule ## Build and install wheel package
@rm -rf dist/* || true && export MAX_JOBS=$(nproc) && uv build --wheel -Cbuild-dir=build . --verbose --color=always --no-build-isolation && pip3 install dist/*whl --force-reinstall --no-deps
@rm -rf dist/* || true && export MAX_JOBS=$(nproc) && CMAKE_BUILD_PARALLEL_LEVEL=$(nproc) uv build --wheel -Cbuild-dir=build . --verbose --color=always --no-build-isolation && pip3 install dist/*whl --force-reinstall --no-deps
clean: ## Remove build artifacts
@rm -rf build dist *.egg-info