diff --git a/cmake/ArchDetect2.cmake b/cmake/ArchDetect2.cmake index 1d9a3467..addf24d7 100644 --- a/cmake/ArchDetect2.cmake +++ b/cmake/ArchDetect2.cmake @@ -118,7 +118,7 @@ int main() { }" SIMD_FMA3) # Check AVX -check_simd_capability("-mavx" "/arch:AVX" "AVX" " +check_simd_capability("-mavx" "" "AVX" " #include int main() { __m256 a = _mm256_set_ps(-1.0f, 2.0f, -3.0f, 4.0f, -1.0f, 2.0f, -3.0f, 4.0f); diff --git a/pyproject.toml b/pyproject.toml index 124fd6bf..9561753e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,8 @@ build-backend = "scikit_build_core.build" [tool.scikit-build] cmake.build-type = "Release" -cmake.args = ["-DCMAKE_BUILD_TYPE=Release"] +cmake.args = ["-DCMAKE_BUILD_TYPE=Release", "-DCMAKE_PARALLEL_LEVEL=1"] +cmake.parallel = false ninja.make-fallback = true sdist.cmake = true diff --git a/scripts/setPythonLibCompiler.py b/scripts/setPythonLibCompiler.py index c2fd4378..5a2fbf94 100644 --- a/scripts/setPythonLibCompiler.py +++ b/scripts/setPythonLibCompiler.py @@ -13,7 +13,7 @@ with open("../pyproject.toml", "r") as pyproj: for line in pyproj.readlines(): if line.startswith("cmake.args"): - text += f'cmake.args = ["-DCMAKE_BUILD_TYPE=Release", "-DCMAKE_C_COMPILER={args.ccompiler}", "-DCMAKE_CXX_COMPILER={args.cxxcompiler}"]\n' + text += f'cmake.args = ["-DCMAKE_BUILD_TYPE=Release", "-DCMAKE_PARALLEL_LEVEL=1", "-DCMAKE_C_COMPILER={args.ccompiler}", "-DCMAKE_CXX_COMPILER={args.cxxcompiler}"]\n' else: text += line diff --git a/scripts/tmp/pyprojectTemplate.toml b/scripts/tmp/pyprojectTemplate.toml index 0b7b24a8..908ecf28 100644 --- a/scripts/tmp/pyprojectTemplate.toml +++ b/scripts/tmp/pyprojectTemplate.toml @@ -15,7 +15,8 @@ build-backend = "scikit_build_core.build" [tool.scikit-build] cmake.build-type = "Release" -cmake.args = ["-DCMAKE_BUILD_TYPE=Release"] +cmake.args = ["-DCMAKE_BUILD_TYPE=Release", "-DCMAKE_PARALLEL_LEVEL=1"] +cmake.parallel = false ninja.make-fallback = true sdist.cmake = true