diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-05-15 17:42:19 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-05-20 18:56:45 +0200 |
commit | e6198d16c66dea2cf6db7fb528cd911493c90bd2 (patch) | |
tree | 6d44d0b74e7ccd9e6a36863ca1c2edfe41f85ab3 /eclass | |
parent | distutils-r1.eclass: Update scikit-build-core to 0.9.4 (diff) | |
download | gentoo-e6198d16c66dea2cf6db7fb528cd911493c90bd2.tar.gz gentoo-e6198d16c66dea2cf6db7fb528cd911493c90bd2.tar.bz2 gentoo-e6198d16c66dea2cf6db7fb528cd911493c90bd2.zip |
distutils-r1.eclass: Pass ninja options to scikit-build-core
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/distutils-r1.eclass | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 3aa2c8984ab2..71b80fafe1a5 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -1457,11 +1457,17 @@ distutils_pep517_install() { "${DISTUTILS_ARGS[@]}" ) + local -x NINJAOPTS=$(get_NINJAOPTS) config_settings=$( "${EPYTHON}" - "${cmake_args[@]}" <<-EOF || die import json + import os + import shlex import sys + + ninjaopts = shlex.split(os.environ["NINJAOPTS"]) print(json.dumps({ + "build.tool-args": ninjaopts, "cmake.args": ";".join(sys.argv[1:]), "cmake.build-type": "${CMAKE_BUILD_TYPE}", "cmake.verbose": True, |