From 37da8444195aae6a9cf6ea73a8dde685b669e519 Mon Sep 17 00:00:00 2001 From: melpon Date: Thu, 30 May 2024 17:15:13 +0900 Subject: [PATCH] =?UTF-8?q?-j=20=E3=82=92=E4=BB=98=E3=81=91=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 6 +++++- requirements-dev.lock | 3 +-- requirements.lock | 1 - run.py | 3 ++- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 8b89edda..d587abb3 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -19,6 +19,8 @@ "editor.formatOnSave": true }, "files.associations": { + "*.cs": "csharp", + "CMakeLists.txt": "cmake", "algorithm": "cpp", "__bits": "cpp", "__config": "cpp", @@ -119,7 +121,9 @@ "strstream": "cpp", "typeindex": "cpp", "source_location": "cpp", - "__memory": "cpp" + "__memory": "cpp", + "compare": "cpp", + "concepts": "cpp" }, "C_Cpp.errorSquiggles": "disabled", // nanobind 周りでエラーが消えないので全部消す diff --git a/requirements-dev.lock b/requirements-dev.lock index 8dab0f06..5a8e02a6 100644 --- a/requirements-dev.lock +++ b/requirements-dev.lock @@ -6,7 +6,6 @@ # features: [] # all-features: false # with-sources: false -# generate-hashes: false -e file:. auditwheel==6.0.0 @@ -30,10 +29,10 @@ pyproject-hooks==1.1.0 # via build pytest==8.2.1 ruff==0.4.5 -setuptools==70.0.0 tomli==2.0.1 # via build # via pytest wheel==0.43.0 zipp==3.19.0 # via importlib-metadata +setuptools==70.0.0 diff --git a/requirements.lock b/requirements.lock index d7954365..8f230963 100644 --- a/requirements.lock +++ b/requirements.lock @@ -6,6 +6,5 @@ # features: [] # all-features: false # with-sources: false -# generate-hashes: false -e file:. diff --git a/run.py b/run.py index 5ee055cf..11814d10 100644 --- a/run.py +++ b/run.py @@ -1,4 +1,5 @@ import hashlib +import multiprocessing import os import platform import shutil @@ -763,7 +764,7 @@ def main(): mkdir_p(sora_build_dir) with cd(sora_build_dir): cmd(["cmake", BASE_DIR, *cmake_args]) - cmd(["cmake", "--build", ".", "--config", configuration]) + cmd(["cmake", "--build", ".", "--config", configuration, f"-j{multiprocessing.cpu_count()}"]) for file in os.listdir(sora_src_dir): if file.startswith("sora_sdk_ext.") and (