diff --git a/recipe/bld.bat b/recipe/bld.bat index 1a90b99..1e574f8 100644 --- a/recipe/bld.bat +++ b/recipe/bld.bat @@ -1,2 +1,8 @@ +cmake %CMAKE_ARGS% -G Ninja -LAH -DCMAKE_BUILD_TYPE=Release -B tmp-build . +if errorlevel 1 exit 1 + +cmake --build tmp-build --parallel %CPU_COUNT% +if errorlevel 1 exit 1 + %PYTHON% -m pip install . -vv if errorlevel 1 exit 1 diff --git a/recipe/build.sh b/recipe/build.sh index 546e19a..a318b58 100644 --- a/recipe/build.sh +++ b/recipe/build.sh @@ -1,4 +1,4 @@ -cmake ${CMAKE_ARGS} -LAH -DCMAKE_BUILD_TYPE=Release -B tmp-build . +cmake ${CMAKE_ARGS} -G Ninja -LAH -DCMAKE_BUILD_TYPE=Release -B tmp-build . cmake --build tmp-build --parallel ${CPU_COUNT} $PYTHON -m pip install . -vv diff --git a/recipe/meta.yaml b/recipe/meta.yaml index e4ae9fb..cf87986 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -11,7 +11,7 @@ source: - clang.patch build: - number: 0 + number: 1 python_version_independent: true # [is_abi3] skip: true # [is_abi3 and not is_python_min] entry_points: @@ -23,7 +23,7 @@ requirements: - {{ stdlib("c") }} - {{ compiler('cxx') }} - cmake - - make # [unix] + - ninja host: - python - python-abi3 # [is_abi3]